for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ShopperLibrary\ObjectModule\Properties\Base;
/**
* Class Address
* @package ShopperLibrary\ObjectModule\Properties\Base
*/
class Address implements \JsonSerializable
{
* @var string $street
protected $street;
* @var string $city
protected $city;
* @var string $zipCode
protected $zipCode;
* @return string
public function getStreet()
return $this->street;
}
* @param string $street
*
* @return Address
public function setStreet($street)
$this->street = $street;
return $this;
public function getCity()
return $this->city;
* @param string $city
public function setCity($city)
$this->city = $city;
public function getZipCode()
return $this->zipCode;
* @param string $zipCode
public function setZipCode($zipCode)
$this->zipCode = $zipCode;
* Encode protected properties
* @return array
public function jsonSerialize()
$object = array();
foreach ($this as $key => $value) {
$object[$key] = $value;
return $object;