Dotink\Parody\Quip::__construct PHP Method

__construct() public method

This method will look through the list of registered factories created with the Mime::onNew() method. The factory is passed a new mime wrapper with this quip as it's first and only argument for post-instantiation modification.
public __construct ( ) : void
return void
    public function __construct()
    {
        $class = self::qualify(get_class($this));
        $args = func_get_args();
        if (isset(self::$factories[$class])) {
            foreach (self::$factories[$class] as $i => $quip) {
                if ($args == $quip['expectation']) {
                    call_user_func($quip['factory'], new Mime($this));
                    return;
                }
            }
            throw new \Exception(sprintf('The constructor for %s was never mimicked with the provided expectations: %s', $class, print_r($args, TRUE)));
        }
    }