for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Sulu\Bundle\ArticleBundle\Prooph\Model;
use Sulu\Bundle\RouteBundle\Model\RoutableInterface;
use Sulu\Bundle\RouteBundle\Model\RouteInterface;
use Sulu\Component\Content\Document\WorkflowStage;
class ArticleTranslation implements RoutableInterface
{
/**
* @var string
*/
public $id;
public $locale;
public $title;
public $routePath;
public $structureType;
* @var array
public $structureData = [];
* @var int
public $createdBy;
public $modifiedBy;
* @var \DateTimeImmutable
public $createdAt;
public $modifiedAt;
public $publishedBy;
public $publishedAt;
public $workflowStage = WorkflowStage::TEST;
// TODO pageTitle, versions, extensions, pages, author
* @var RouteInterface
private $route;
public function getId()
return $this->id;
}
public function getRoute()
return $this->route;
public function setRoute(RouteInterface $route)
$this->route = $route;
$this->routePath = $route->getPath();
public function getLocale()
return $this->locale;