Phactory\Mongo\Collection::__construct PHP Method

__construct() public method

public __construct ( $singular_name, $pluralize = true, Phactory $phactory )
$phactory Phactory
    public function __construct($singular_name, $pluralize = true, Phactory $phactory)
    {
        $this->_singular = $singular_name;
        if ($pluralize) {
            $this->_name = Inflector::pluralize($singular_name);
        } else {
            $this->_name = $singular_name;
        }
        $this->_collection = $phactory->getDb()->selectCollection($this->_name);
    }