for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Onfleet;
/**
* Class Administrator
* @package Onfleet
*/
class Administrator extends Entity
{
const TYPE_CREATOR = 'super';
const TYPE_DISPATCHER = 'standard';
protected $name;
protected $email;
protected $phone;
protected $type;
protected $isActive;
protected $timeCreated;
protected $timeLastModified;
protected $organization;
protected $metadata = [];
protected $endpoint = 'admins';
protected static $properties = [
'id',
'name',
'email',
'phone',
'isActive',
'organization',
'type',
'metadata',
'timeCreated',
'timeLastModified',
];
* @return mixed
public function getName()
return $this->name;
}
* @param mixed $name
public function setName($name)
$this->name = $name;
public function getEmail()
return $this->email;
* @param mixed $email
public function setEmail($email)
$this->email = $email;
public function getPhone()
return $this->phone;
* @param mixed $phone
public function setPhone($phone)
$this->phone = $phone;
public function getType()
return $this->type;
* @param mixed $type
public function setType($type)
$this->type = $type;
* @return boolean
public function isActive()
return $this->isActive;
public function getTimeCreated()
return $this->timeCreated;
public function getTimeLastModified()
return $this->timeLastModified;
public function getOrganization()
return $this->organization;
* @return array
public function getMetadata(): array
return $this->metadata;