setAsProtected() public method

public setAsProtected ( string $name, boolean | integer | string | array $value )
$name string
$value boolean | integer | string | array
Beispiel #1
0
 /**
  * Construct
  *
  * @param Configuration $config
  * @param Environment   $env
  */
 public function __construct(Configuration $config, Environment $env)
 {
     $this->config = $config;
     $this->env = $env;
     $env->setAsProtected('server', ['name' => $config->getName(), 'host' => $config->getHost(), 'port' => $config->getPort()]);
 }