public __get ( $property ) | ||
$property | string name of property |
public function __get($property)
{
if (method_exists($this, 'get' . ucfirst($property))) {
return $this->{'get' . ucfirst($property)}();
} else {
return;
}
}