| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | abstract class Resource |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * The data for the resource. |
||
| 12 | * |
||
| 13 | * @var array |
||
| 14 | */ |
||
| 15 | protected $data; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Create a new Resource instance. |
||
| 19 | * |
||
| 20 | * @param array $data |
||
| 21 | */ |
||
| 22 | public function __construct(array $data) |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Get data for the resource by the provided key. |
||
| 29 | * |
||
| 30 | * @param string $key |
||
| 31 | * @return mixed |
||
| 32 | */ |
||
| 33 | public function getData(string $key) |
||
| 38 |