protected function removeRecord (Record $record) 
    {
        $index = array_search($record, $this->_records, true);
        if ($index === false) {
            throw new InvalidArgumentException("{$this} does not contain {$record}");
        }
        unset($this->_records[$index]);
    }
protected function removeRecord (Record $record) 
    {
        $index = array_search($record, $this->_records, true);
        if ($index === false) {
            throw new InvalidArgumentException("{$this} does not contain {$record}");
        }
        unset($this->_records[$index]);
    }
protected function removeRecord ( Record $ record ) { $ index = array_search ( $ record , $ this -> _records , true ) ; if ( $ index === false ) { throw new InvalidArgumentException ( "{$this} does not contain {$record}" ) ; } unset ( $ this -> _records [ $ index ] ) ; }
Remove a contained record.

@throws InvalidArgumentException Record does not contain the record

@param  Record $record Record to remove
@return void
Remove a contained record .