Example #1
0
 /**
  * Gets the name this field should be exposed as (serializer concern).
  * Normally this is the name, but can be overriden by "exposeAs" property on the field.
  *
  * @return string exposed field name
  */
 private function getExposedName()
 {
     return $this->definition->getExposeAs() === null ? $this->getName() : $this->definition->getExposeAs();
 }