mirror of
https://github.com/doctrine/doctrine-website.git
synced 2026-03-23 22:32:11 +01:00
38 lines
756 B
PHP
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;
|
|
}
|
|
}
|