kernel/private/api/content/criteria/limit.php
public function limit( $limit )
    {
        $limit = (int)$limit;
        if( $limit > 0 )
            $this->limit = $limit;

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

        return $this;
    }
public function limit ( $ limit ) { $ limit = ( int ) $ limit ; if ( $ limit > 0 ) $ this -> limit = $ limit ; return $ this ; }
Sets the limit criteria
@param $limit
@return ezpContentLimitCriteria Current limit criteria object
Sets the limit criteria