Pagekit\Database\Table::__call PHP Method

__call() public method

Proxy method call to table.
public __call ( string $method, array $args ) : mixed
$method string
$args array
return mixed
    public function __call($method, $args)
    {
        if (!method_exists($this->table, $method)) {
            throw new \BadMethodCallException(sprintf('Undefined method call "%s::%s"', get_class($this->table), $method));
        }
        return call_user_func_array([$this->table, $method], $args);
    }