public function setAccess(?string $access): AbstractElement
14
{
15
110
if (!static::accessIsValid($access)) {
16
2
throw new InvalidArgumentException(sprintf('Access "%s" is invalid, please provide one of these accesses: %s', $access, implode(', ', AccessRestrictedElementInterface::ACCESSES)));
The expression return $this returns the type WsdlToPhp\PhpGenerator\E...sRestrictedElementTrait which is incompatible with the type-hinted return WsdlToPhp\PhpGenerator\Element\AbstractElement.
Loading history...
21
}
22
23
82
public function getAccess(): string
24
{
25
82
return $this->access;
26
}
27
28
110
public static function accessIsValid(?string $access): bool