| Total Complexity | 1 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class SingleRecord extends Resource |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @inheritdoc |
||
| 17 | */ |
||
| 18 | public $patterns = [ |
||
| 19 | 'PUT,PATCH' => 'update', |
||
| 20 | 'DELETE' => 'delete', |
||
| 21 | 'GET,HEAD' => 'view', |
||
| 22 | 'POST' => 'create', |
||
| 23 | '' => 'options', |
||
| 24 | ]; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var string[] list of valid extensions that this rule can handle. |
||
| 28 | */ |
||
| 29 | public $ext = ['png', 'jpg']; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @inheritdoc |
||
| 33 | */ |
||
| 34 | public function init() |
||
| 40 |