Horde_ActiveSync_Message_Base::__call PHP Method

__call() public method

Magic caller method.
public __call ( mixed $method, array $arg ) : mixed
$method mixed The method to call.
$arg array Method arguments.
return mixed
    public function __call($method, $arg)
    {
        /* Support calling set{Property}() */
        if (strpos($method, 'set') === 0) {
            $property = Horde_String::lower(substr($method, 3));
            $this->_properties[$property] = $arg;
        } elseif (strpos($method, 'get') === 0) {
            return $this->_getAttribute(Horde_String::lower(substr($method, 3)));
        }
        throw new BadMethodCallException('Unknown method: ' . $method . ' in class: ' . __CLASS__);
    }