@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | } |
83 | 83 | |
84 | 84 | /** |
85 | - * @return bool |
|
85 | + * @return string |
|
86 | 86 | */ |
87 | 87 | public function getParentNationality() { |
88 | 88 | return $this->parentNationality; |
@@ -119,7 +119,6 @@ discard block |
||
119 | 119 | /** |
120 | 120 | * Return a specific visa |
121 | 121 | * |
122 | - * @param Visa $visa |
|
123 | 122 | * |
124 | 123 | * @return mixed|null |
125 | 124 | */ |
@@ -49,7 +49,7 @@ |
||
49 | 49 | * Method to check if a resource is supported by the loader |
50 | 50 | * This method check only extension file |
51 | 51 | * |
52 | - * @param $resource |
|
52 | + * @param string $resource |
|
53 | 53 | * |
54 | 54 | * @return boolean Return true if the extension of the ressource is supported by the loader |
55 | 55 | */ |
@@ -44,6 +44,9 @@ |
||
44 | 44 | |
45 | 45 | } |
46 | 46 | |
47 | + /** |
|
48 | + * @param string $configPaths_root |
|
49 | + */ |
|
47 | 50 | public function setConfigPathRoot($configPaths_root = null) { |
48 | 51 | // $this->config_path_route = $configPaths_root; |
49 | 52 | foreach($this->loaders as $loader) { |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use PhpAbac\Loader\AbacLoader; |
6 | 6 | use PhpAbac\Loader\JsonAbacLoader; |
7 | 7 | use PhpAbac\Loader\YamlAbacLoader; |
8 | - |
|
9 | 8 | use Symfony\Component\Config\FileLocatorInterface; |
10 | 9 | |
11 | 10 | class ConfigurationManager { |
@@ -7,9 +7,7 @@ |
||
7 | 7 | use PhpAbac\Manager\ConfigurationManager; |
8 | 8 | use PhpAbac\Manager\CacheManager; |
9 | 9 | use PhpAbac\Manager\ComparisonManager; |
10 | - |
|
11 | 10 | use Symfony\Component\Config\FileLocator; |
12 | - |
|
13 | 11 | use PhpAbac\Model\PolicyRuleAttribute; |
14 | 12 | |
15 | 13 | class Abac { |
@@ -88,7 +88,6 @@ discard block |
||
88 | 88 | |
89 | 89 | /** |
90 | 90 | * @param AbstractAttribute $attribute |
91 | - * @param string $attributeType |
|
92 | 91 | * @param object $user |
93 | 92 | * @param object $object |
94 | 93 | * @return mixed |
@@ -136,7 +135,7 @@ discard block |
||
136 | 135 | /** |
137 | 136 | * |
138 | 137 | * @param \PhpAbac\Model\EnvironmentAttribute $attribute |
139 | - * @return mixed |
|
138 | + * @return string |
|
140 | 139 | */ |
141 | 140 | private function retrieveEnvironmentAttribute(EnvironmentAttribute $attribute) { |
142 | 141 | return getenv($attribute->getVariableName()); |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace PhpAbac\Manager; |
4 | 4 | |
5 | 5 | use PhpAbac\Model\PolicyRuleAttribute; |
6 | - |
|
7 | 6 | use PhpAbac\Comparison\ArrayComparison; |
8 | 7 | use PhpAbac\Comparison\BooleanComparison; |
9 | 8 | use PhpAbac\Comparison\DatetimeComparison; |