DataSift\Storyplayer\PlayerLib\StoryTeller::__call PHP Method

__call() public method

public __call ( string $methodName, array $methodArgs ) : mixed
$methodName string
$methodArgs array
return mixed
    public function __call($methodName, $methodArgs)
    {
        // what class do we want?
        $className = $this->proseLoader->determineProseClassFor($methodName);
        // use the Prose Loader to create the object to call
        $obj = $this->proseLoader->loadProse($this, $className, $methodArgs);
        // did we find something?
        if (!is_object($obj)) {
            // alas, no
            throw new E5xx_NoMatchingActions($methodName);
        }
        // all done
        return $obj;
    }