/**
  * @param ResultRecordInterface $record
  * @return mixed
  */
 protected function getRawValue(ResultRecordInterface $record)
 {
     $value = parent::getRawValue($record);
     if (is_null($value)) {
         $value = $this->translator->trans(Ticket::UNASSIGNED_LABEL);
     }
     return $value;
 }
 /**
  * {@inheritdoc}
  */
 protected function getRawValue(ResultRecordInterface $record)
 {
     $author = parent::getRawValue($record);
     try {
         $context = $record->getValue('context');
     } catch (\LogicException $e) {
         $context = null;
     }
     return ['author' => $author, 'context' => $context];
 }
 /**
  * {@inheritdoc}
  */
 protected function getRawValue(ResultRecordInterface $record)
 {
     $value = parent::getRawValue($record);
     $context = $this->getOr(self::CONTEXT_KEY, []);
     if (!is_array($context)) {
         $context = [$context];
     }
     $resolver = $this->getOr(self::RESOLVER_KEY, false);
     if (is_callable($resolver)) {
         $context = array_merge($context, $resolver($record, $value, $this->getFormatter()));
     }
     array_unshift($context, $value);
     $method = $this->get(self::FORMATTER_METHOD);
     if (!method_exists($this->getFormatter(), $method)) {
         throw new LogicException('Given method does not exist');
     }
     return call_user_func_array([$this->getFormatter(), $method], $context);
 }
 /**
  * @param TranslatorInterface $translator
  */
 public function __construct(TranslatorInterface $translator)
 {
     parent::__construct($translator);
 }
 /**
  * @param JobRegistry         $jobRegistry
  * @param TranslatorInterface $translator
  */
 public function __construct(JobRegistry $jobRegistry, TranslatorInterface $translator)
 {
     $this->jobRegistry = $jobRegistry;
     parent::__construct($translator);
 }
 /**
  * {@inheritdoc}
  */
 protected function convertValue($value)
 {
     $result = $this->getBackendData($value);
     return parent::convertValue($result);
 }
 /**
  * {@inheritDoc}
  */
 public function getRawValue(ResultRecordInterface $record)
 {
     $value = parent::getRawValue($record);
     return $this->translator->trans($value, [], $this->getOr(self::DOMAIN_KEY), $this->getOr(self::LOCALE_KEY));
 }
 /**
  * @param ConnectorRegistry   $connectorRegistry
  * @param TranslatorInterface $translator
  */
 public function __construct(ConnectorRegistry $connectorRegistry, TranslatorInterface $translator)
 {
     $this->connectorRegistry = $connectorRegistry;
     parent::__construct($translator);
 }
 /**
  * {@inheritdoc}
  */
 protected function convertValue($value)
 {
     $result = $this->getBackendData($value);
     return OroFieldProperty::convertValue($result);
 }