protected function addRecord (Record $record) 
    {
        if ($this->containsRecord($record)) {
            throw new InvalidArgumentException("{$this} already contains {$record}");
        }
        $this->_records []= $record;
    }
protected function addRecord (Record $record) 
    {
        if ($this->containsRecord($record)) {
            throw new InvalidArgumentException("{$this} already contains {$record}");
        }
        $this->_records []= $record;
    }
protected function addRecord ( Record $ record ) { if ( $ this -> containsRecord ( $ record ) ) { throw new InvalidArgumentException ( "{$this} already contains {$record}" ) ; } $ this -> _records [ ] = $ record ; }
Add a record as a contained record.

@throws InvalidArgumentException Record already contains the record

@param  Record $record Record to add
@return void
Add a record as a contained record .