addDirective() публичный Метод

If it already exists, do nothing
public addDirective ( string $key, mixed $value = null ) : self
$key string
$value mixed
Результат self
Пример #1
0
 /**
  * Add a directive if it doesn't already exist
  * If it already exists, do nothing.
  * 
  * @param string $directive
  * @param mixed  $value
  * 
  * @return self
  */
 public function addDirective($directive, $value)
 {
     $this->csp->addDirective($directive, $value);
     return $this;
 }