eZ\Publish\Core\Repository\Values\Content\Content::__construct PHP Method

__construct() public method

public __construct ( array $data = [] )
$data array
    public function __construct(array $data = array())
    {
        foreach ($data as $propertyName => $propertyValue) {
            $this->{$propertyName} = $propertyValue;
        }
        foreach ($this->internalFields as $field) {
            $this->fields[$field->fieldDefIdentifier][$field->languageCode] = $field->value;
        }
    }