@@ -37,11 +37,19 @@ public function connect()
3737 $ this ->connection = ServicesBuilder::getInstance ()->createServiceBusService ($ this ->connection_string );
3838 }
3939
40- /**
41- * @param array $data
42- * @return boolean Status of saving
43- * @throws \PHPQueue\Exception
44- */
40+ /**
41+ * @return \WindowsAzure\ServiceBus\ServiceBusRestProxy
42+ */
43+ public function getConnection ()
44+ {
45+ return parent ::getConnection ();
46+ }
47+
48+ /**
49+ * @param array $data
50+ * @throws \PHPQueue\Exception\BackendException
51+ * @return boolean Status of saving
52+ */
4553 public function add ($ data =array ())
4654 {
4755 $ this ->beforeAdd ();
@@ -59,10 +67,10 @@ public function add($data=array())
5967 return true ;
6068 }
6169
62- /**
63- * @return array
64- * @throws \PHPQueue\Exception
65- */
70+ /**
71+ * @throws \PHPQueue\Exception\JobNotFoundException
72+ * @return array
73+ */
6674 public function get ()
6775 {
6876 $ this ->beforeGet ();
@@ -88,11 +96,11 @@ public function get()
8896 }
8997 }
9098
91- /**
92- * @param string $jobId
93- * @return boolean
94- * @throws \PHPQueue\Exception
95- */
99+ /**
100+ * @param string $jobId
101+ * @throws \PHPQueue\Exception\BackendException
102+ * @return boolean
103+ */
96104 public function clear ($ jobId =null )
97105 {
98106 $ this ->beforeClear ($ jobId );
@@ -110,11 +118,11 @@ public function clear($jobId=null)
110118 }
111119 }
112120
113- /**
114- * @param string $jobId
115- * @return boolean
116- * @throws \PHPQueue\Exception If job wasn't retrieved previously.
117- */
121+ /**
122+ * @param string $jobId
123+ * @throws \PHPQueue\Exception\BackendException
124+ * @return boolean
125+ */
118126 public function release ($ jobId =null )
119127 {
120128 $ this ->beforeRelease ($ jobId );
@@ -144,7 +152,6 @@ public function createQueue($queue_name)
144152 {
145153 throw new BackendException ($ ex ->getMessage (), $ ex ->getCode ());
146154 }
147- return false ;
148155 }
149156
150157 private function checkQueue ()
0 commit comments