public function applyAttribute(Entity $entity, $fieldKey, $value)
    {
        $entity->addAttribute($this->createAttribute($fieldKey, $value));
        return $this;
    }
public function applyAttribute(Entity $entity, $fieldKey, $value)
    {
        $entity->addAttribute($this->createAttribute($fieldKey, $value));
        return $this;
    }
public function applyAttribute ( Entity $ entity , $ fieldKey , $ value ) { $ entity -> addAttribute ( $ this -> createAttribute ( $ fieldKey , $ value ) ) ; return $ this ; }
Applies a single attribute value to a resource.

@param   Entity      $entity     The entity to apply the attribute value to.
@param   string      $fieldKey   The attribute field key.
@param   mixed       $value      The attribute value.
@return  self
Applies a single attribute value to a resource .