Files
archived-doctrine-website/lib/Model/ProjectIntegrationType.php
2023-08-23 21:03:31 +02:00

38 lines
756 B
PHP

<?php
declare(strict_types=1);
namespace Doctrine\Website\Model;
class ProjectIntegrationType
{
private string $name;
private string $url;
private string $icon;
/** @param mixed[] $projectIntegrationType */
public function __construct(array $projectIntegrationType)
{
$this->name = (string) ($projectIntegrationType['name'] ?? '');
$this->url = (string) ($projectIntegrationType['url'] ?? '');
$this->icon = (string) ($projectIntegrationType['icon'] ?? '');
}
public function getName(): string
{
return $this->name;
}
public function getUrl(): string
{
return $this->url;
}
public function getIcon(): string
{
return $this->icon;
}
}