public function addClass(PhpClass $class)
    {
        if ($this->classExists($class->getIdentifier())) {
            throw new Exception('A class of the name (' . $class->getIdentifier() . ') does already exist.');
        }

        $this->classes[$class->getIdentifier()] = $class;
    }
public function addClass(PhpClass $class)
    {
        if ($this->classExists($class->getIdentifier())) {
            throw new Exception('A class of the name (' . $class->getIdentifier() . ') does already exist.');
        }

        $this->classes[$class->getIdentifier()] = $class;
    }
public function addClass ( PhpClass $ class ) { if ( $ this -> classExists ( $ class -> getIdentifier ( ) ) ) { throw new Exception ( 'A class of the name (' . $ class -> getIdentifier ( ) . ') does already exist.' ) ; } $ this -> classes [ $ class -> getIdentifier ( ) ] = $ class ; }
Adds a class to the file

@param PhpClass $class The class to add
@throws Exception If the class already exists
Adds a class to the file