Gajus\MOA\Mother::get PHP Method

get() public method

Get object property.
public get ( string $name ) : mixed
$name string Property name.
return mixed
    public function get($name)
    {
        if (!isset(static::$columns[$name])) {
            throw new Exception\UndefinedPropertyException('Cannot get property that is not in the object definition.');
        }
        return isset($this->data[$name]) ? $this->data[$name] : null;
    }