1 | <?php |
||
19 | class Record extends AbstractRepository |
||
20 | { |
||
21 | /** |
||
22 | * Find the record by its id that belongs to the provided databox |
||
23 | * |
||
24 | * @param integer $databoxId The record databox id |
||
25 | * @param integer $recordId The record id |
||
26 | * @return \PhraseanetSDK\Entity\Record |
||
27 | * @throws RuntimeException |
||
28 | */ |
||
29 | 2 | public function findById($databoxId, $recordId, $disableCache = false) |
|
46 | |||
47 | /** |
||
48 | * Find records |
||
49 | * |
||
50 | * @param integer $offsetStart The offset |
||
51 | * @param integer $perPage The number of item per page |
||
52 | * @return ArrayCollection |
||
53 | * @throws RuntimeException |
||
54 | */ |
||
55 | 2 | public function find($offsetStart, $perPage) |
|
71 | |||
72 | /** |
||
73 | * Search for records |
||
74 | * |
||
75 | * @param array $parameters Query parameters |
||
76 | * @return \PhraseanetSDK\Entity\Query object |
||
77 | * @throws RuntimeException |
||
78 | */ |
||
79 | 2 | public function search(array $parameters = array()) |
|
92 | } |
||
93 |
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.