@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | /** |
| 79 | 79 | * Set the url of the notification |
| 80 | 80 | * |
| 81 | - * @param $url |
|
| 81 | + * @param string $url |
|
| 82 | 82 | * @return $this |
| 83 | 83 | */ |
| 84 | 84 | public function url($url) |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | * the generation of your array |
| 147 | 147 | * |
| 148 | 148 | * |
| 149 | - * @param callable|Closure $closure |
|
| 149 | + * @param Closure $closure |
|
| 150 | 150 | * @return array|false |
| 151 | 151 | * @throws NotificationBuilderException |
| 152 | 152 | */ |
@@ -246,7 +246,7 @@ discard block |
||
| 246 | 246 | * send |
| 247 | 247 | * |
| 248 | 248 | * @param $from |
| 249 | - * @param $property |
|
| 249 | + * @param string $property |
|
| 250 | 250 | * @return array |
| 251 | 251 | */ |
| 252 | 252 | protected function setEntityAction($from, $property) |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | /** |
| 32 | 32 | * Find a category by name |
| 33 | 33 | * |
| 34 | - * @param $name |
|
| 34 | + * @param string $name |
|
| 35 | 35 | * @throws CategoryNotFoundException |
| 36 | 36 | * @return mixed |
| 37 | 37 | */ |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | * |
| 92 | 92 | * @param array $name |
| 93 | 93 | * @param $text |
| 94 | - * @return \Fenos\Notifynder\Models\NotificationCategory |
|
| 94 | + * @return CategoryDB |
|
| 95 | 95 | */ |
| 96 | 96 | public function add($name, $text) |
| 97 | 97 | { |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | * |
| 70 | 70 | * @param array $name |
| 71 | 71 | * @param $text |
| 72 | - * @return static |
|
| 72 | + * @return NotificationCategory |
|
| 73 | 73 | */ |
| 74 | 74 | public function add($name, $text) |
| 75 | 75 | { |
@@ -141,7 +141,7 @@ |
||
| 141 | 141 | * Check if a string with dots |
| 142 | 142 | * |
| 143 | 143 | * @param $name |
| 144 | - * @return bool |
|
| 144 | + * @return integer |
|
| 145 | 145 | */ |
| 146 | 146 | protected function isStringWithDots($name) |
| 147 | 147 | { |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | * Find a notification by ID |
| 54 | 54 | * |
| 55 | 55 | * @param $notification_id |
| 56 | - * @return NotificationModel|\Illuminate\Database\Eloquent\Model|static |
|
| 56 | + * @return NotificationModel |
|
| 57 | 57 | * @throws \Fenos\Notifynder\Exceptions\NotificationNotFoundException |
| 58 | 58 | */ |
| 59 | 59 | public function find($notification_id) |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | * @param $to_id |
| 90 | 90 | * @param $numbers |
| 91 | 91 | * @param string $order |
| 92 | - * @return mixed |
|
| 92 | + * @return integer |
|
| 93 | 93 | */ |
| 94 | 94 | public function readLimit($to_id, $numbers, $order = "ASC") |
| 95 | 95 | { |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | * given entity |
| 102 | 102 | * |
| 103 | 103 | * @param $to_id |
| 104 | - * @return Number |
|
| 104 | + * @return integer |
|
| 105 | 105 | */ |
| 106 | 106 | public function readAll($to_id) |
| 107 | 107 | { |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | * @param $entity_id |
| 129 | 129 | * @param $number |
| 130 | 130 | * @param $order |
| 131 | - * @return mixed |
|
| 131 | + * @return integer |
|
| 132 | 132 | */ |
| 133 | 133 | public function deleteLimit($entity_id, $number, $order = 'asc') |
| 134 | 134 | { |
@@ -248,7 +248,7 @@ discard block |
||
| 248 | 248 | * Send single notification |
| 249 | 249 | * |
| 250 | 250 | * @param array $info |
| 251 | - * @return static |
|
| 251 | + * @return NotificationModel |
|
| 252 | 252 | */ |
| 253 | 253 | public function sendOne(array $info) |
| 254 | 254 | { |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | * |
| 158 | 158 | * @param $name |
| 159 | 159 | * @param $text |
| 160 | - * @return static |
|
| 160 | + * @return Models\NotificationCategory |
|
| 161 | 161 | */ |
| 162 | 162 | public function addCategory($name, $text) |
| 163 | 163 | { |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | * Send notifications |
| 181 | 181 | * Both multiple and single |
| 182 | 182 | * |
| 183 | - * @param array $info |
|
| 183 | + * @param string[] $info |
|
| 184 | 184 | * @return mixed |
| 185 | 185 | */ |
| 186 | 186 | public function send($info = []) |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | * Send One notification |
| 209 | 209 | * |
| 210 | 210 | * @param array $info |
| 211 | - * @return mixed |
|
| 211 | + * @return Senders\SendOne |
|
| 212 | 212 | */ |
| 213 | 213 | public function sendOne($info = []) |
| 214 | 214 | { |
@@ -260,7 +260,7 @@ discard block |
||
| 260 | 260 | * Given |
| 261 | 261 | * |
| 262 | 262 | * @param $to_id |
| 263 | - * @param $numbers |
|
| 263 | + * @param integer $numbers |
|
| 264 | 264 | * @param string $order |
| 265 | 265 | * @return mixed |
| 266 | 266 | */ |
@@ -301,7 +301,7 @@ discard block |
||
| 301 | 301 | * secified of the given entity |
| 302 | 302 | * |
| 303 | 303 | * @param $to_id |
| 304 | - * @param $number |
|
| 304 | + * @param integer $number |
|
| 305 | 305 | * @param string $order |
| 306 | 306 | * @return mixed |
| 307 | 307 | */ |
@@ -83,7 +83,7 @@ |
||
| 83 | 83 | * |
| 84 | 84 | * @param $info |
| 85 | 85 | * @param $category |
| 86 | - * @return SendOne |
|
| 86 | + * @return \Fenos\Notifynder\Models\Notification |
|
| 87 | 87 | */ |
| 88 | 88 | public function sendOne($info, $category = null) |
| 89 | 89 | { |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | /** |
| 25 | 25 | * Create a new compiler instance. |
| 26 | 26 | * |
| 27 | - * @param Filesystem|\Illuminate\Filesystem\Filesystem $files |
|
| 27 | + * @param Filesystem $files |
|
| 28 | 28 | */ |
| 29 | 29 | public function __construct(Filesystem $files) |
| 30 | 30 | { |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | * Cache the file in json format |
| 88 | 88 | * |
| 89 | 89 | * @param array $contents |
| 90 | - * @return bool|int |
|
| 90 | + * @return integer |
|
| 91 | 91 | */ |
| 92 | 92 | public function cacheFile(array $contents) |
| 93 | 93 | { |
@@ -142,7 +142,7 @@ |
||
| 142 | 142 | /** |
| 143 | 143 | * Get parsed body attributes. |
| 144 | 144 | * |
| 145 | - * @return mixed |
|
| 145 | + * @return string |
|
| 146 | 146 | */ |
| 147 | 147 | public function getNotifyBodyAttribute() |
| 148 | 148 | { |