/**
  * @param ContentAttributeInterface $contentAttribute
  *
  * @return FacadeInterface
  *
  * @throws TransformerParameterTypeException
  */
 public function transform($contentAttribute)
 {
     if (!$contentAttribute instanceof ContentAttributeInterface) {
         throw new TransformerParameterTypeException();
     }
     $facade = $this->newFacade();
     $facade->name = $contentAttribute->getName();
     $facade->value = $contentAttribute->getValue();
     $facade->stringValue = $contentAttribute->getStringValue();
     $facade->type = $contentAttribute->getType();
     return $facade;
 }
 /**
  * @param ContentAttributeInterface $attribute
  */
 public function removeAttribute(ContentAttributeInterface $attribute)
 {
     $this->attributes->remove($attribute->getName());
 }