| 1 | <?php  | 
            ||
| 15 | class PageVoter extends AbstractVoter  | 
            ||
| 16 | { | 
            ||
| 17 | /**  | 
            ||
| 18 |      * @{inheritDoc} | 
            ||
| 19 | */  | 
            ||
| 20 | public function supportsClass($class)  | 
            ||
| 26 | |||
| 27 | /**  | 
            ||
| 28 |      * @{inheritDoc} | 
            ||
| 29 | */  | 
            ||
| 30 | public function vote(TokenInterface $token, $object, array $attributes)  | 
            ||
| 48 | |||
| 49 | |||
| 50 | /**  | 
            ||
| 51 | * Checks whether the given page is public. If not, it abstains from voting  | 
            ||
| 52 | *  | 
            ||
| 53 | * @param PageInterface $page  | 
            ||
| 54 | * @return bool  | 
            ||
| 55 | */  | 
            ||
| 56 | public function isPublic(PageInterface $page)  | 
            ||
| 60 | }  | 
            ||
| 61 |