mirror of
https://github.com/doctrine/doctrine-website.git
synced 2026-03-23 22:32:11 +01:00
31 lines
498 B
PHP
31 lines
498 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Doctrine\Website\Model;
|
|
|
|
final class EventLocation
|
|
{
|
|
/** @var string */
|
|
private $name;
|
|
|
|
/** @var Address */
|
|
private $address;
|
|
|
|
public function __construct(string $name, Address $address)
|
|
{
|
|
$this->name = $name;
|
|
$this->address = $address;
|
|
}
|
|
|
|
public function getName() : string
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
public function getAddress() : Address
|
|
{
|
|
return $this->address;
|
|
}
|
|
}
|