public function apply(EntityInterface $entity, SpecificationInterface $specification)
    {
        $attribute_name = $specification->getOption('attribute', $specification->getName());
        $entity_value = $entity->getValue($attribute_name);

        return $entity_value;
    }
public function apply(EntityInterface $entity, SpecificationInterface $specification)
    {
        $attribute_name = $specification->getOption('attribute', $specification->getName());
        $entity_value = $entity->getValue($attribute_name);

        return $entity_value;
    }
public function apply ( EntityInterface $ entity , SpecificationInterface $ specification ) { $ attribute_name = $ specification -> getOption ( 'attribute' , $ specification -> getName ( ) ) ; $ entity_value = $ entity -> getValue ( $ attribute_name ) ; return $ entity_value ; }
Transform the entity value, which is described by the given attributespec,
to it's output representation.

@param EntityInterface $entity
@param SpecificationInterface $specification

@return mixed
Transform the entity value which is described by the given attributespec to it s output representation .