FOF30\Model\Model::__get PHP Method

__get() public method

Magic getter; allows to use the name of model state keys as properties. Also handles magic properties: $this->input mapped to $this->container->input
public __get ( string $name ) : static
$name string The state variable key
return static
    public function __get($name)
    {
        // Handle $this->input
        if ($name == 'input') {
            return $this->container->input;
        }
        return $this->getState($name);
    }