public function addIdentifier($identifier)
    {
        $this->validateIdentifier($identifier);

        if (in_array($identifier, $this->identifiers)) {
            throw new InvalidIdentifierException('Error: Cannot add the identifier "'.$identifier.'" twice');
        }

        $this->identifiers[] = $identifier;
    }
public function addIdentifier($identifier)
    {
        $this->validateIdentifier($identifier);

        if (in_array($identifier, $this->identifiers)) {
            throw new InvalidIdentifierException('Error: Cannot add the identifier "'.$identifier.'" twice');
        }

        $this->identifiers[] = $identifier;
    }
public function addIdentifier ( $ identifier ) { $ this -> validateIdentifier ( $ identifier ) ; if ( in_array ( $ identifier , $ this -> identifiers ) ) { throw new InvalidIdentifierException ( 'Error: Cannot add the identifier "' . $ identifier . '" twice' ) ; } $ this -> identifiers [ ] = $ identifier ; }
Create a new identifier for the symbol at runtime. All characters
are allowed except digits and '.'.

@param string $identifier
@return void
@throws InvalidIdentifierException
Create a new identifier for the symbol at runtime . All characters are allowed except digits and . .