for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* File containing the (content) Field class.
*
* @copyright Copyright (C) eZ Systems AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/
namespace eZ\Publish\SPI\Persistence\Content;
use eZ\Publish\SPI\Persistence\ValueObject;
class Field extends ValueObject
{
* Field ID.
* @var mixed
public $id;
* Corresponding field definition.
public $fieldDefinitionId;
* Data type name.
* @var string
public $type;
* Value of the field.
* @var \eZ\Publish\SPI\Persistence\Content\FieldValue
public $value;
* Language code of this Field.
public $languageCode;
* @var int|null Null if not created yet
* @todo Normally we would use a create struct here
public $versionNo;
* Clone object properties.
* Note: `clone` keyword performs shallow copy of an object.
* For properties being objects this means that a reference
* is copied instead of the actual object.
public function __clone()
$this->value = clone $this->value;
}