Added method to get calculated value from Access class

This commit is contained in:
Matias Griese
2019-12-18 20:57:56 +02:00
parent 2437112f3c
commit da02c0992a

View File

@@ -62,6 +62,11 @@ class Access implements \JsonSerializable, \IteratorAggregate, \Countable
return Utils::arrayUnflattenDotNotation($this->acl);
}
public function get(string $action)
{
return $this->acl[$action] ?? null;
}
/**
* @return \Traversable
*/