public function addLabel($text, $isPlain = true, $lang = 'en')
    {
        $this->labels[$lang] = new Label($text, $this->getLocaleKey(), $isPlain, $lang, $this->name);
    }
public function addLabel($text, $isPlain = true, $lang = 'en')
    {
        $this->labels[$lang] = new Label($text, $this->getLocaleKey(), $isPlain, $lang, $this->name);
    }
public function addLabel ( $ text , $ isPlain = true , $ lang = 'en' ) { $ this -> labels [ $ lang ] = new Label ( $ text , $ this -> getLocaleKey ( ) , $ isPlain , $ lang , $ this -> name ) ; }
Adds a label to the labels collection

@param string $text
@param bool $isPlain
@param string $lang

@return void
Adds a label to the labels collection