| 1 | <?php |
||
| 20 | class PreconditionCheckerAspect implements Aspect |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var PreconditionContract |
||
| 24 | */ |
||
| 25 | private $contractChecker; |
||
| 26 | |||
| 27 | public function __construct(Reader $reader) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Verifies pre-condition contract for the method |
||
| 34 | * |
||
| 35 | * @param MethodInvocation $invocation |
||
| 36 | * @Before("@execution(PhpDeal\Annotation\Verify)") |
||
| 37 | * |
||
| 38 | * @throws ContractViolation |
||
| 39 | */ |
||
| 40 | 19 | public function preConditionContract(MethodInvocation $invocation) |
|
| 44 | } |
||
| 45 |