1515use Symfony \Component \Security \Core \Authentication \Token \TokenInterface ;
1616
1717/**
18- * Abstract Voter implementation that reduces boilerplate code required to create a custom Voter
18+ * Abstract Voter implementation that reduces boilerplate code required to create a custom Voter.
1919 *
2020 * @author Roman Marintšenko <inoryy@gmail.com>
2121 */
@@ -44,7 +44,7 @@ public function supportsClass($class)
4444 }
4545
4646 /**
47- * Iteratively check all given attributes by calling isGranted
47+ * Iteratively check all given attributes by calling isGranted.
4848 *
4949 * This method terminates as soon as it is able to return ACCESS_GRANTED
5050 * If at least one attribute is supported, but access not granted, then ACCESS_DENIED is returned
@@ -83,14 +83,14 @@ public function vote(TokenInterface $token, $object, array $attributes)
8383 }
8484
8585 /**
86- * Return an array of supported classes. This will be called by supportsClass
86+ * Return an array of supported classes. This will be called by supportsClass.
8787 *
8888 * @return array an array of supported classes, i.e. array('Acme\DemoBundle\Model\Product')
8989 */
9090 abstract protected function getSupportedClasses ();
9191
9292 /**
93- * Return an array of supported attributes. This will be called by supportsAttribute
93+ * Return an array of supported attributes. This will be called by supportsAttribute.
9494 *
9595 * @return array an array of supported attributes, i.e. array('CREATE', 'READ')
9696 */
@@ -101,7 +101,7 @@ abstract protected function getSupportedAttributes();
101101 * It is safe to assume that $attribute and $object's class pass supportsAttribute/supportsClass
102102 * $user can be one of the following:
103103 * a UserInterface object (fully authenticated user)
104- * a string (anonymously authenticated user)
104+ * a string (anonymously authenticated user).
105105 *
106106 * @param string $attribute
107107 * @param object $object
0 commit comments