1<?
php declare(strict_types=1);
56 if ($this->provider_name_cache !==
'' && is_string($this->provider_name_cache)) {
59 $reflector = new \ReflectionClass($this);
61 $re =
"/.*[\\\|\\/](?P<provider>(Services|Modules)[\\\|\\/].*)[\\\|\\/]classes/m";
63 preg_match($re, str_replace(
"\\",
"/", $reflector->getFileName()), $matches);
65 $this->provider_name_cache = isset($matches[1]) ? is_string($matches[1]) ? $matches[1] : self::class : self::class;
An exception for terminatinating execution or to throw for unit testing.
Interface Identification.
Class AbstractResourceStakeholder.
getConsumerNameForPresentation()
@inheritDoc
resourceHasBeenDeleted(ResourceIdentification $identification)
@inheritDoc
getFullyQualifiedClassName()
@inheritDoc
isResourceInUse(ResourceIdentification $identification)
@inheritDoc
getOwnerOfResource(ResourceIdentification $identification)
@inheritDoc
Interface ResourceStakeholder.