Ejemplo n.º 1
0
 /**
  * Returns a string describing why the policy exists at all.
  *
  * A reasoning may not exist and in that case the method will return null.
  *
  * @return null|string
  */
 public function getRationale()
 {
     return $this->evaluation->causedBy()->getRationale();
 }
Ejemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function getMessages()
 {
     return [$this->lastResult->getMessage()];
 }