contact() public method

Used when constructing new User models.
public contact ( ) : string
return string
Example #1
0
 /**
  * Creates a new user instance as a contact.
  *
  * @param array $attributes
  *
  * @return User
  */
 public function contact(array $attributes = [])
 {
     return (new User($attributes, $this->query))->setAttribute($this->schema->objectClass(), [$this->schema->top(), $this->schema->person(), $this->schema->organizationalPerson(), $this->schema->contact()]);
 }