type fixes
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user