| @@ 56-65 (lines=10) @@ | ||
| 53 | * @param ContentService $contentService |
|
| 54 | * @param array $data |
|
| 55 | */ |
|
| 56 | public function __construct(ContentService $contentService, array $data = array()) |
|
| 57 | { |
|
| 58 | $this->contentService = $contentService; |
|
| 59 | foreach ($data as $propertyName => $propertyValue) { |
|
| 60 | $this->$propertyName = $propertyValue; |
|
| 61 | } |
|
| 62 | foreach ($this->internalFields as $field) { |
|
| 63 | $this->fields[$field->fieldDefIdentifier][$field->languageCode] = $field; |
|
| 64 | } |
|
| 65 | } |
|
| 66 | ||
| 67 | /** |
|
| 68 | * Returns the VersionInfo for this version. |
|
| @@ 52-60 (lines=9) @@ | ||
| 49 | */ |
|
| 50 | protected $prioritizedFieldLanguageCode; |
|
| 51 | ||
| 52 | public function __construct(array $data = array()) |
|
| 53 | { |
|
| 54 | foreach ($data as $propertyName => $propertyValue) { |
|
| 55 | $this->$propertyName = $propertyValue; |
|
| 56 | } |
|
| 57 | foreach ($this->internalFields as $field) { |
|
| 58 | $this->fields[$field->fieldDefIdentifier][$field->languageCode] = $field->value; |
|
| 59 | } |
|
| 60 | } |
|
| 61 | ||
| 62 | /** |
|
| 63 | * {@inheritdoc} |
|