public function addOption($option)
    {
        if (in_array($option, Generator::$tagOptionKeys)
            && !$this->hasOption($option)
        ) {
            $this->options[] = $option;
        }
    }
public function addOption($option)
    {
        if (in_array($option, Generator::$tagOptionKeys)
            && !$this->hasOption($option)
        ) {
            $this->options[] = $option;
        }
    }
public function addOption ( $ option ) { if ( in_array ( $ option , Generator :: $ tagOptionKeys ) && ! $ this -> hasOption ( $ option ) ) { $ this -> options [ ] = $ option ; } }
Adds an option to the Tag

@param string $option the new option

@return void
Adds an option to the Tag