public function setCollection($collection)
    {
        //Argument 1 must be a string
        Argument::i()->test(1, 'string');
        
        if ($collection != self::COLLECTION
        && !is_subclass_of($collection, self::COLLECTION)) {
            Exception::i()
                ->setMessage(Exception::NOT_SUB_COLLECTION)
                ->addVariable($collection)
                ->trigger();
        }
        
        $this->collection = $collection;
        return $this;
    }
public function setCollection($collection)
    {
        //Argument 1 must be a string
        Argument::i()->test(1, 'string');
        
        if ($collection != self::COLLECTION
        && !is_subclass_of($collection, self::COLLECTION)) {
            Exception::i()
                ->setMessage(Exception::NOT_SUB_COLLECTION)
                ->addVariable($collection)
                ->trigger();
        }
        
        $this->collection = $collection;
        return $this;
    }
public function setCollection ( $ collection ) { //Argument 1 must be a string Argument :: i ( ) -> test ( 1 , 'string' ) ; if ( $ collection != self :: COLLECTION && ! is_subclass_of ( $ collection , self :: COLLECTION ) ) { Exception :: i ( ) -> setMessage ( Exception :: NOT_SUB_COLLECTION ) -> addVariable ( $ collection ) -> trigger ( ) ; } $ this -> collection = $ collection ; return $ this ; }
Sets default collection

@param *string $collection Collection class name

@return Eden\Sql\Index
Sets default collection