Prose\FromPDOStatement::__construct PHP Method

__construct() public method

public __construct ( $st, $args )
    public function __construct($st, $args)
    {
        // call our parent first
        parent::__construct($st, $args);
        // make sure we have a PDO connection to use
        if (!isset($this->args[0])) {
            throw new E5xx_ActionFailed(__METHOD__, "param #1 must be a valid PDOStatement object");
        }
        if (!$this->args[0] instanceof PDOStatement) {
            throw new E5xx_ActionFailed(__METHOD__, "param #1 must be an instance of PDOStatement");
        }
    }