DataSift\Storyplayer\BrowserLib\SingleElementAction::__call PHP Method

__call() public method

public __call ( string $methodName, array $methodArgs ) : mixed
$methodName string
$methodArgs array
return mixed
    public function __call($methodName, $methodArgs)
    {
        // retrieve the element, using the fake method name to figure out
        // which element the caller is looking for
        $element = $this->retrieveElement($methodName, $methodArgs);
        // now that we have our element, let's apply the action to it
        $action = $this->action;
        $return = $action($element, $methodArgs[0], $methodName);
        // all done
        return $return;
    }
SingleElementAction