private function checkCount(){
        $cnt = (int) $this->getMaxEntries();
        if ($cnt !== NULL && count($this->values) !== $cnt){
            trigger_error("Wrong count of Elements. Expected are $cnt. But right now there are ". count($this->values));
        }

    }
private function checkCount(){
        $cnt = (int) $this->getMaxEntries();
        if ($cnt !== NULL && count($this->values) !== $cnt){
            trigger_error("Wrong count of Elements. Expected are $cnt. But right now there are ". count($this->values));
        }

    }
private function checkCount ( ) { $ cnt = ( int ) $ this -> getMaxEntries ( ) ; if ( $ cnt !== NULL && count ( $ this -> values ) !== $ cnt ) { trigger_error ( "Wrong count of Elements. Expected are $cnt. But right now there are " . count ( $ this -> values ) ) ; } }
checks if the expected count is given
triggers an error if getMaxEntries Returns a number
and this number is not equal to the count of elements.
checks if the expected count is given triggers an error if getMaxEntries Returns a number and this number is not equal to the count of elements .