type fixes

This commit is contained in:
Yuri Kuznetsov
2022-03-18 18:04:03 +02:00
parent 761e7b7b72
commit 31a84a6e53
2 changed files with 5 additions and 1 deletions
@@ -99,11 +99,13 @@ class Person extends Entity
public function getEmailAddressGroup(): EmailAddressGroup
{
/** @var EmailAddressGroup */
return $this->getValueObject('emailAddress');
}
public function getPhoneNumberGroup(): PhoneNumberGroup
{
/** @var PhoneNumberGroup */
return $this->getValueObject('phoneNumber');
}
@@ -164,6 +166,7 @@ class Person extends Entity
public function getAddress(): Address
{
/** @var Address */
return $this->getValueObject('address');
}
@@ -100,10 +100,11 @@ class EntryPointManager
}
/**
* @return ?class-string
* @return ?class-string<EntryPoint>
*/
private function getClassName(string $name): ?string
{
/** @var ?class-string<EntryPoint> */
return $this->classFinder->find('EntryPoints', ucfirst($name));
}
}