for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Itmedia\ZippyBusBundle\Schedule;
class City
{
/**
* @var int
*/
private $id;
* @var string
private $name;
private $version;
* @var \DateTime
private $updatedAt;
* City constructor.
* @param int $id
* @param string $name
* @param int $version
public function __construct(int $id, string $name, int $version, \DateTime $updatedAt)
$this->id = $id;
$this->name = $name;
$this->version = $version;
$this->updatedAt = $updatedAt;
}
* @return int
public function getId(): int
return $this->id;
* @return string
public function getName(): string
return $this->name;
public function getVersion(): int
return $this->version;
public function getUpdatedAt(): \DateTime
return $this->updatedAt;