public function setDirective(string $key, $value = null) : self { $this->policies[$key] = $value; return $this; }