1 | <?php |
||
18 | final class ComposedResource extends Resource |
||
19 | { |
||
20 | const CREDENTIALS = 'credentials'; |
||
21 | |||
22 | public function mandatory() |
||
23 | { |
||
24 | return [ |
||
25 | ComposedResource::CREDENTIALS, |
||
26 | ]; |
||
27 | } |
||
28 | |||
29 | public function rules() |
||
30 | { |
||
31 | return [ |
||
32 | ComposedResource::CREDENTIALS => [ |
||
33 | 'object' => '\Sensorario\Resources\Resource', |
||
34 | ] |
||
35 | ]; |
||
36 | } |
||
37 | } |
||
38 | |||
39 |