AppserverIo\Appserver\ServletEngine\Security\SimplePrincipal::__construct PHP Метод

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

Initialize the principal with the passed name.
public __construct ( string $name )
$name string The principal's name
    public function __construct(string $name)
    {
        $this->name = $name;
    }

Usage Example

Пример #1
0
 /**
  * Initialize the principal with the passed name.
  *
  * @param \AppserverIo\Lang\String $name The principal's name
  */
 public function __construct(string $name)
 {
     // invoke the parent constructor
     parent::__construct($name);
     // initialize the members
     $this->members = new HashMap();
 }