protected function updateInstance()
    {
        $this->instances++;
        $id = $this->generateId();
        $this->setAttribute($id, $id);
        if ($label = $this->getLabel()) {
            $label->setAttribute('for', $id);
        }
        
        return $this;
    }
protected function updateInstance()
    {
        $this->instances++;
        $id = $this->generateId();
        $this->setAttribute($id, $id);
        if ($label = $this->getLabel()) {
            $label->setAttribute('for', $id);
        }
        
        return $this;
    }
protected function updateInstance ( ) { $ this -> instances ++ ; $ id = $ this -> generateId ( ) ; $ this -> setAttribute ( $ id , $ id ) ; if ( $ label = $ this -> getLabel ( ) ) { $ label -> setAttribute ( 'for' , $ id ) ; } return $ this ; }
Updates input id and link it to its label

@return self|AbstractInput
Updates input id and link it to its label