for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* This file is part of the -SeamsCMSDeliverySdk package.
*
* (c) Seams-CMS.com
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace SeamsCMS\Delivery\Model;
/**
* Class ContentMeta
* @package SeamsCMS\Delivery\Model
class ContentMeta
{
use HydratorTrait {
fromArray as private fromArrayTrait;
}
/** @var string */
private $revisionId;
private $entryId;
private $contentType;
/** @var \DateTimeImmutable */
private $createdAt;
private $createdBy;
private $updatedAt;
private $updatedBy;
* ContentMeta constructor.
protected function __construct()
* @return string
public function getRevisionId(): string
return $this->revisionId;
public function getEntryId(): string
return $this->entryId;
public function getContentType(): string
return $this->contentType;
* @return \DateTimeImmutable
public function getCreatedAt(): \DateTimeImmutable
return $this->createdAt;
public function getCreatedBy(): string
return $this->createdBy;
public function getUpdatedAt(): \DateTimeImmutable
return $this->updatedAt;
public function getUpdatedBy(): string
return $this->updatedBy;
* @param array $data
* @return ContentMeta
public static function fromArray(array $data)
return self::fromArrayTrait($data);