for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Anorgan\Onfleet;
/**
* Class Destination
* @package Anorgan\Onfleet
*/
class Destination extends Entity
{
protected $address = [];
protected $location = [];
protected $notes;
protected $metadata = [];
protected $timeCreated;
protected $timeLastModified;
protected $endpoint = 'destinations';
protected static $properties = [
'id',
'address',
'location',
'notes',
'metadata',
'timeCreated',
'timeLastModified',
];
* @return array
public function getAddress(): array
return $this->address;
}
* @param array $address
public function setAddress(array $address)
$this->address = $address;
public function getLocation(): array
return $this->location;
* @param array $location
public function setLocation(array $location)
$this->location = $location;
* @return string
public function getNotes(): string
return $this->notes;
* @param string $notes
public function setNotes($notes)
$this->notes = $notes;
public function getMetadata(): array
return $this->metadata;
* @return \DateTime
public function getTimeCreated()
return $this->toDateTime($this->timeCreated);
public function getTimeLastModified()
return $this->toDateTime($this->timeLastModified);
* @throws \BadMethodCallException
public function update()
throw new \BadMethodCallException('Destination can not be updated');
public function delete()
throw new \BadMethodCallException('Destination can not be deleted');