| 1 | <?php |
||
| 9 | class OwnerVoter implements PermissionVoterInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var PermissionQueryInterface |
||
| 13 | */ |
||
| 14 | private $permissionRepository; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param PermissionQueryInterface $permissionRepository |
||
| 18 | */ |
||
| 19 | public function __construct(PermissionQueryInterface $permissionRepository) |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param Permission $permission |
||
| 26 | * @param StringLiteral $offerId |
||
| 27 | * @param StringLiteral $userId |
||
| 28 | * @return bool |
||
| 29 | */ |
||
| 30 | public function isAllowed( |
||
| 38 | } |
||
| 39 |