Esempio n. 1
0
 /**
  * Returns a query builder limited to exchange servers.
  *
  * @return Builder
  */
 public function contacts()
 {
     return $this->query->whereEquals($this->schema->objectClass(), $this->schema->contact());
 }
Esempio n. 2
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()]);
 }