LazyRecord\BaseModel::asCollection PHP Method

asCollection() public method

Return the collection object of current model object.
public asCollection ( ) : LazyRecord\BaseCollection
return LazyRecord\BaseCollection
    public function asCollection()
    {
        $class = static::COLLECTION_CLASS;
        return new $class();
    }