Neos\Flow\Package\MetaData\AbstractParty::__construct PHP Méthode

__construct() public méthode

Meta data party model constructor
public __construct ( string $role, string $name, string $email = null, string $website = null )
$role string
$name string
$email string
$website string
    public function __construct($role, $name, $email = null, $website = null)
    {
        $this->role = $role;
        $this->name = $name;
        $this->email = $email;
        $this->website = $website;
    }

Usage Example

 /**
  * Meta data person model constructor
  *
  * @param string $role
  * @param string $name
  * @param string $email
  * @param string $website
  * @param string $company
  * @param string $repositoryUserName
  */
 public function __construct($role, $name, $email = null, $website = null, $company = null, $repositoryUserName = null)
 {
     parent::__construct($role, $name, $email, $website);
     $this->company = $company;
     $this->repositoryUserName = $repositoryUserName;
 }