public function take($limit)
    {
        if (is_null($this->limit)) {
            $this->limit = (int) $limit;

            return $this;
        }

        if (preg_match('/^([\d]+),\s$/', $this->limit, $match)) {
            $this->limit = end($match).', '.$limit;
        }

        return $this;
    }
public function take($limit)
    {
        if (is_null($this->limit)) {
            $this->limit = (int) $limit;

            return $this;
        }

        if (preg_match('/^([\d]+),\s$/', $this->limit, $match)) {
            $this->limit = end($match).', '.$limit;
        }

        return $this;
    }
public function take ( $ limit ) { if ( is_null ( $ this -> limit ) ) { $ this -> limit = ( int ) $ limit ; return $ this ; } if ( preg_match ( '/^([\d]+),\s$/' , $ this -> limit , $ match ) ) { $ this -> limit = end ( $ match ) . ', ' . $ limit ; } return $ this ; }
Take = Limit

@param int $limit

@return QueryBuilder
Take = Limit