| 1 | <?php | ||
| 18 | final class MethodsAllowedConstraint extends Constraint | ||
| 19 | { | ||
| 20 | /** | ||
| 21 | * @var array | ||
| 22 | */ | ||
| 23 | private $allowedMethods; | ||
| 24 | |||
| 25 | /** | ||
| 26 | * @param array $allowedMethods | ||
| 27 | */ | ||
| 28 | 3 | public function __construct(array $allowedMethods) | |
| 34 | |||
| 35 | /** | ||
| 36 |      * {@inheritdoc} | ||
| 37 | */ | ||
| 38 | 3 | protected function matches($other) | |
| 46 | |||
| 47 | /** | ||
| 48 |      * {@inheritdoc} | ||
| 49 | */ | ||
| 50 | 1 | public function toString() | |
| 54 | } | ||
| 55 |