Exemplo n.º 1
0
 /**
  * Users for given company ID
  * @param int $id
  * @return Users
  */
 public function usersForCompany($id)
 {
     $repository = new Users($this);
     $repository->setCompanyId($id);
     return $repository;
 }
Exemplo n.º 2
0
 /**
  * Get state commands for this user
  * @return State
  */
 public function state()
 {
     $state = new State($this->repository->getApiClient());
     $state->setContext($this->repository->getContext() . '/users/' . $this->id);
     return $state;
 }