We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| 1 | <?php |
||
| 17 | abstract class AbstractWrapper extends AbstractRule |
||
| 18 | { |
||
| 19 | protected $validatable; |
||
| 20 | |||
| 21 | 6 | public function getValidatable() |
|
| 22 | { |
||
| 23 | 6 | if (!$this->validatable instanceof Validatable) { |
|
| 24 | 1 | throw new ComponentException('There is no defined validatable'); |
|
| 25 | } |
||
| 26 | |||
| 27 | 5 | return $this->validatable; |
|
| 28 | } |
||
| 29 | |||
| 30 | 1 | public function assert($input) |
|
| 34 | |||
| 35 | 1 | public function check($input) |
|
| 39 | |||
| 40 | 1 | public function validate($input) |
|
| 44 | |||
| 45 | 1 | public function setName($name) |
|
| 50 | } |
||
| 51 |