@@ -139,6 +139,9 @@ |
||
| 139 | 139 | return $this; |
| 140 | 140 | } |
| 141 | 141 | |
| 142 | + /** |
|
| 143 | + * @param string $property |
|
| 144 | + */ |
|
| 142 | 145 | public function reference(Contracts\Type $foreign, $property = null) |
| 143 | 146 | { |
| 144 | 147 | if (!$property) { |
@@ -31,6 +31,9 @@ |
||
| 31 | 31 | return $response; |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | + /** |
|
| 35 | + * @param double $start |
|
| 36 | + */ |
|
| 34 | 37 | private function log($start, $class, $request = [], $response = []) |
| 35 | 38 | { |
| 36 | 39 | if ($this->logging) { |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | } |
| 206 | 206 | |
| 207 | 207 | /** |
| 208 | - * @return Entity |
|
| 208 | + * @return boolean |
|
| 209 | 209 | */ |
| 210 | 210 | public function knows(Contracts\Entity $entity) |
| 211 | 211 | { |
@@ -340,6 +340,9 @@ discard block |
||
| 340 | 340 | return $this->type; |
| 341 | 341 | } |
| 342 | 342 | |
| 343 | + /** |
|
| 344 | + * @param string $query |
|
| 345 | + */ |
|
| 343 | 346 | public function evaluate($query) |
| 344 | 347 | { |
| 345 | 348 | $result = []; |
@@ -22,6 +22,9 @@ discard block |
||
| 22 | 22 | } |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | + /** |
|
| 26 | + * @param string $key |
|
| 27 | + */ |
|
| 25 | 28 | public function __set($key, $value) |
| 26 | 29 | { |
| 27 | 30 | if ($key == 'id' && $this->getId()) { |
@@ -31,6 +34,9 @@ discard block |
||
| 31 | 34 | $this->$key = $value; |
| 32 | 35 | } |
| 33 | 36 | |
| 37 | + /** |
|
| 38 | + * @param string $key |
|
| 39 | + */ |
|
| 34 | 40 | public function __get($key) |
| 35 | 41 | { |
| 36 | 42 | if (property_exists($this, $key)) { |