public function getValueData(AttributeInterface $attribute, array $context = null)
    {
        $valuesData = $this->getValuesData($attribute, $context);

        return 0 === \count($valuesData) ? null : $valuesData->first();
    }
public function getValueData(AttributeInterface $attribute, array $context = null)
    {
        $valuesData = $this->getValuesData($attribute, $context);

        return 0 === \count($valuesData) ? null : $valuesData->first();
    }
public function getValueData ( AttributeInterface $ attribute , array $ context = null ) { $ valuesData = $ this -> getValuesData ( $ attribute , $ context ) ; return 0 === \ count ( $ valuesData ) ? null : $ valuesData -> first ( ) ; }
Get the value data of the value matching the attribute

@param AttributeInterface $attribute
@param array|null         $context

@throws InvalidValueDataException
@throws MissingAttributeException
@throws ContextException

@return mixed
Get the value data of the value matching the attribute