for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace GloBee\PaymentApi\Models;
use GloBee\PaymentApi\Exceptions\UnknownPropertyException;
abstract class Model
{
/**
* @param $name
*
* @return mixed
* @throws UnknownPropertyException
*/
public function __get($name)
if (property_exists($this, $name)) {
return $this->{$name};
}
throw new UnknownPropertyException($name);