| Conditions | 3 |
| Paths | 4 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | 5 | public function can($transition, array $parameters = array()) |
|
| 35 | { |
||
| 36 | 5 | $transition = $transition instanceof TransitionInterface ? $transition : $this->getTransition($transition); |
|
| 37 | |||
| 38 | 5 | if (!$this->authorizationChecker->isGranted($transition->getName(), $this->getObject())) { |
|
| 39 | 5 | return false; |
|
| 40 | } |
||
| 41 | |||
| 42 | 5 | return parent::can($transition, $parameters); |
|
| 43 | } |
||
| 44 | } |
||
| 45 |