Pheasant\Collection::__construct PHP Method

__construct() public method

public __construct ( $class, $query, $add = false )
$class string the classname to hydrate
$query Query the query object
$add Closure a closure to call when an object is appended
    public function __construct($class, $query, $add = false)
    {
        $this->_query = $query;
        $this->_add = $add;
        $this->_schema = $schema = $class::schema();
        $this->_iterator = new QueryIterator($this->_query, array($this, 'hydrate'));
        $this->_scopes = $class::scopes();
    }