src/Ease/Html/Tag.php
public function setObjectName($objectName = null)
    {
        if (!is_null($objectName)) {
            return parent::setObjectName($objectName);
        }
        if (!empty($this->tagName)) {
            return parent::setObjectName(get_class($this).'@'.$this->tagName);
        } else {
            if (!empty($this->tagType)) {
                return parent::setObjectName(get_class($this).'@'.$this->tagType);
            } else {
                return parent::setObjectName();
            }
        }
    }
public function setObjectName($objectName = null)
    {
        if (!is_null($objectName)) {
            return parent::setObjectName($objectName);
        }
        if (!empty($this->tagName)) {
            return parent::setObjectName(get_class($this).'@'.$this->tagName);
        } else {
            if (!empty($this->tagType)) {
                return parent::setObjectName(get_class($this).'@'.$this->tagType);
            } else {
                return parent::setObjectName();
            }
        }
    }
Set ObjectName
Nastaví jméno objektu.

@param string $objectName jméno objektu

@return string New object name