protected function addDefect($collName, $type, $text) { $this->{$collName}[] = array('type' => $type, 'text' => trim($text)); }