Added property types to some classes

This commit is contained in:
Alejandro Celaya
2019-12-29 22:27:00 +01:00
parent 050050a9eb
commit b904c6d00d
86 changed files with 218 additions and 457 deletions

View File

@@ -15,18 +15,12 @@ use Shlinkio\Shlink\Core\Visit\Model\VisitLocationInterface;
class Visit extends AbstractEntity implements JsonSerializable
{
/** @var string */
private $referer;
/** @var Chronos */
private $date;
/** @var string|null */
private $remoteAddr;
/** @var string */
private $userAgent;
/** @var ShortUrl */
private $shortUrl;
/** @var VisitLocation */
private $visitLocation;
private string $referer;
private Chronos $date;
private ?string $remoteAddr;
private string $userAgent;
private ShortUrl $shortUrl;
private ?VisitLocation $visitLocation = null;
public function __construct(ShortUrl $shortUrl, Visitor $visitor, ?Chronos $date = null)
{