Phactory\Mongo\Blueprint::__construct PHP Method

__construct() public method

public __construct ( $name, $defaults, $associations = [], Phactory $phactory )
$phactory Phactory
    public function __construct($name, $defaults, $associations = array(), Phactory $phactory)
    {
        $this->_collection = new Collection($name, true, $phactory);
        $this->_defaults = $defaults;
        $this->_sequence = new Sequence();
        if (!is_array($associations)) {
            throw new \Exception("\$associations must be an array of Association objects");
        }
        $this->setAssociations($associations);
    }