public function setLimit($limit)
    {
        $message = 'Given limit must be a positive number.';
        Assertion::numeric($limit, $message);
        Assertion::min($limit, 0, $message);

        $this->limit = $limit;
    }
public function setLimit($limit)
    {
        $message = 'Given limit must be a positive number.';
        Assertion::numeric($limit, $message);
        Assertion::min($limit, 0, $message);

        $this->limit = $limit;
    }
public function setLimit ( $ limit ) { $ message = 'Given limit must be a positive number.' ; Assertion :: numeric ( $ limit , $ message ) ; Assertion :: min ( $ limit , 0 , $ message ) ; $ this -> limit = $ limit ; }
Defines the amount of entities to be fetched from the information provider.

@param integer $limit Positive integer defining the amount of records to be return in max. Zero (0) defines an unlimited amount.

@throws \Assert\InvalidArgumentException in case the provided argument does not meet expectations.
Defines the amount of entities to be fetched from the information provider .