lib/Psc/CMS/Item/ButtonableValueObject.php
public static function copyFromButtonable(Buttonable $tabButtonable) {
    $valueObject = new static();
    
    // ugly, but fast
    $valueObject->setButtonLabel($tabButtonable->getButtonLabel());
    $valueObject->setFullButtonLabel($tabButtonable->getFullButtonLabel());
    $valueObject->setButtonLeftIcon($tabButtonable->getButtonLeftIcon());
    $valueObject->setButtonRightIcon($tabButtonable->getButtonRightIcon());
    $valueObject->setButtonMode($tabButtonable->getButtonMode());
    
    return $valueObject;
  }
public static function copyFromButtonable(Buttonable $tabButtonable) {
    $valueObject = new static();
    
    // ugly, but fast
    $valueObject->setButtonLabel($tabButtonable->getButtonLabel());
    $valueObject->setFullButtonLabel($tabButtonable->getFullButtonLabel());
    $valueObject->setButtonLeftIcon($tabButtonable->getButtonLeftIcon());
    $valueObject->setButtonRightIcon($tabButtonable->getButtonRightIcon());
    $valueObject->setButtonMode($tabButtonable->getButtonMode());
    
    return $valueObject;
  }
public static function copyFromButtonable ( Buttonable $ tabButtonable ) { $ valueObject = new static ( ) ; // ugly, but fast $ valueObject -> setButtonLabel ( $ tabButtonable -> getButtonLabel ( ) ) ; $ valueObject -> setFullButtonLabel ( $ tabButtonable -> getFullButtonLabel ( ) ) ; $ valueObject -> setButtonLeftIcon ( $ tabButtonable -> getButtonLeftIcon ( ) ) ; $ valueObject -> setButtonRightIcon ( $ tabButtonable -> getButtonRightIcon ( ) ) ; $ valueObject -> setButtonMode ( $ tabButtonable -> getButtonMode ( ) ) ; return $ valueObject ; }
Creates a copy of an Buttonable

use this to have a modified Version of the interface
@return ButtonableValueObject
Creates a copy of an Buttonable