Add phpdoc to SecurityPolicyInterface

This commit is contained in:
Vincent Langlet
2022-03-17 22:53:08 +01:00
committed by GitHub
parent 4c4fb89512
commit e33f97cd8b
+10
View File
@@ -19,16 +19,26 @@ namespace Twig\Sandbox;
interface SecurityPolicyInterface interface SecurityPolicyInterface
{ {
/** /**
* @param string[] $tags
* @param string[] $filters
* @param string[] $functions
*
* @throws SecurityError * @throws SecurityError
*/ */
public function checkSecurity($tags, $filters, $functions); public function checkSecurity($tags, $filters, $functions);
/** /**
* @param object $obj
* @param string $method
*
* @throws SecurityNotAllowedMethodError * @throws SecurityNotAllowedMethodError
*/ */
public function checkMethodAllowed($obj, $method); public function checkMethodAllowed($obj, $method);
/** /**
* @param object $obj
* @param string $property
*
* @throws SecurityNotAllowedPropertyError * @throws SecurityNotAllowedPropertyError
*/ */
public function checkPropertyAllowed($obj, $property); public function checkPropertyAllowed($obj, $property);