for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Packback\Prices;
class PriceDto
{
/**
* ISBN13 for this price
*
* @var string
*/
public $isbn13;
* Price amount
public $price;
* Shipping price amount
public $shipping_price;
* Url of store page to purchase book at this price
public $url;
* Retailer selling at this price
public $retailer;
* Term at which this price is available
public $term;
* Condition of the product
public $condition;
* Magic method to get protected property, if exists
* @param string $name
* @return mixed
* @throws OutOfRangeException
public function __get($name)
if (!property_exists($this, $name)) {
throw new \OutOfRangeException(sprintf(
'%s does not contain a property by the name of "%s"',
__CLASS__,
$name
));
}
return $this->{$name};
* Magic method to set protected property, if exists
* @param mixed $value
* @return $this
public function __set($name, $value)
$this->{$name} = $value;
return $this;
* Magic method to check if property is set
* @return boolean
public function __isset($name)
return (property_exists($this, $name));