for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* File containing the ObjectState 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\Core\Repository\Values\ObjectState;
use eZ\Publish\API\Repository\Values\ObjectState\ObjectState as APIObjectState;
use eZ\Publish\Core\Repository\Values\MultiLanguageDescriptionTrait;
use eZ\Publish\Core\Repository\Values\MultiLanguageNameTrait;
use eZ\Publish\Core\Repository\Values\MultiLanguageTrait;
* This class represents a object state value.
* @property-read mixed $id the id of the content type group
* @property-read string $identifier the identifier of the content type group
* @property-read int $priority the priority in the group ordering
* @property-read string $defaultLanguageCode the default language of the object state group names and description used for fallback.
* @property-read string[] $languageCodes the available languages
* @internal Meant for internal use by Repository, type hint against API object instead.
class ObjectState extends APIObjectState
{
use MultiLanguageTrait;
use MultiLanguageNameTrait;
use MultiLanguageDescriptionTrait;
* @var \eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroup
protected $objectStateGroup;
* The object state group this object state belongs to.
* @return \eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroup
public function getObjectStateGroup()
return $this->objectStateGroup;
}