for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace VasilDakov\Speedy\Service\Location\Street;
use VasilDakov\Speedy\Property;
use VasilDakov\Speedy\Traits\ToArray;
/**
* Class FindStreetRequest.
*
* @author Vasil Dakov <[email protected]>
* @copyright 2009-2022 Neutrino.bg
* @version 1.0
*/
class FindStreetRequest
{
use ToArray;
VasilDakov\Speedy\Traits\ToArray
$value
VasilDakov\Speedy\Servic...treet\FindStreetRequest
private int $siteId;
private string $name;
private ?string $type = null;
public function __construct(int $siteId, string $name, ?string $type = null)
$this->siteId = $siteId;
$this->name = $name;
$this->type = $type;
}
* @return int
public function getSiteId(): int
return $this->siteId;
* @return string
public function getName(): string
return $this->name;
* @return string|null
public function getType(): ?string
return $this->type;
public function toArray(): array
return [
Property::SITE_ID->value => $this->siteId,
Property::NAME->value => $this->name,
Property::TYPE->value => $this->type,
];