Exemple #1
0
 /**
  * @return array
  */
 public function toArray() : array
 {
     return array_merge(array_filter([self::EXCHANGE_USER_ID => $this->hasUserId() ? $this->getUserId() : null, self::EXCHANGE_ITEM_ID => $this->hasItemId() ? $this->getItemId() : null, self::EXCHANGE_ITEM_TYPE => $this->hasItemType() ? $this->getItemType() : null, self::EXCHANGE_ACTION_TYPE => $this->hasAction() ? $this->getAction()->get() : null]), parent::toArray());
 }
Exemple #2
0
 /**
  * @return array
  */
 public function toArray() : array
 {
     return array_merge([self::EXCHANGE_FIRST_NAME => $this->getFirstName(), self::EXCHANGE_SURNAME => $this->getSurname(), self::EXCHANGE_USER_GROUP_ID => $this->getUserGroupId()], parent::toArray());
 }
 /**
  * @return array
  */
 public function getBaseConfig() : array
 {
     return array_merge([self::EXCHANGE_NAME => $this->getName()], parent::toArray());
 }
Exemple #4
0
 /**
  * @return array
  */
 public function toArray() : array
 {
     return array_merge(array_filter([self::EXCHANGE_FILE_NAME => $this->hasFilename() ? $this->getFilename() : null, self::EXCHANGE_NAME => $this->hasName() ? $this->getName() : null, self::EXCHANGE_FILE_SIZE => $this->hasFileSize() ? $this->getFileSize() : null, self::EXCHANGE_MIME_TYPE => $this->hasMimeType() ? $this->getMimeType() : null]), parent::toArray());
 }
Exemple #5
0
 public function toArray() : array
 {
     return array_merge([self::EXCHANGE_NAME => $this->getName(), self::EXCHANGE_DEFINITIONS => $this->getDefinitions(), self::EXCHANGE_VALUES => $this->getValues()], parent::toArray());
 }
 public function toArray() : array
 {
     return array_merge([self::EXCHANGE_USER_GROUP_ID => $this->getUserGroupId(), self::EXCHANGE_ITEM_ID => $this->getItemId(), self::EXCHANGE_ALLOWED => $this->isAllowed()], parent::toArray());
 }