public function getPolicy()
  {
    $policy = Policy::load($this->getName());
    if ($this->getSeverity() !== NULL) {
      $policy->setSeverity($this->getSeverity());
    }

    foreach ($this->parameters as $param => $value) {
      $info = ['default' => $value];
      $policy->addParameter($param, $info);
    }
    return $policy;
  }
public function getPolicy()
  {
    $policy = Policy::load($this->getName());
    if ($this->getSeverity() !== NULL) {
      $policy->setSeverity($this->getSeverity());
    }

    foreach ($this->parameters as $param => $value) {
      $info = ['default' => $value];
      $policy->addParameter($param, $info);
    }
    return $policy;
  }
public function getPolicy ( ) { $ policy = Policy :: load ( $ this -> getName ( ) ) ; if ( $ this -> getSeverity ( ) !== NULL ) { $ policy -> setSeverity ( $ this -> getSeverity ( ) ) ; } foreach ( $ this -> parameters as $ param => $ value ) { $ info = [ 'default' => $ value ] ; $ policy -> addParameter ( $ param , $ info ) ; } return $ policy ; }
Get the policy for the profile.
Get the policy for the profile .