diff --git a/src/Core/ConfigMap/AbstractConfigMap.php b/src/Core/ConfigMap/AbstractConfigMap.php index 5fa8f4d..c41793b 100644 --- a/src/Core/ConfigMap/AbstractConfigMap.php +++ b/src/Core/ConfigMap/AbstractConfigMap.php @@ -16,7 +16,7 @@ public function binaryData(StringMap $binaryData): void { } - public static function kind(): string + final public static function kind(): string { return ConfigMap::KIND; } diff --git a/src/Core/Container/ContainerMaker.php b/src/Core/Container/ContainerMaker.php index a231b7b..870ee5f 100644 --- a/src/Core/Container/ContainerMaker.php +++ b/src/Core/Container/ContainerMaker.php @@ -15,10 +15,10 @@ use Dealroadshow\K8S\Framework\Core\Container\VolumeMount\VolumeMountsConfigurator; use Dealroadshow\K8S\Framework\Middleware\ContainerImageMiddlewareInterface; -class ContainerMaker +class ContainerMaker implements ContainerMakerInterface { /** - * @var ContainerImageMiddlewareInterface[]|iterable + * @var ContainerImageMiddlewareInterface[] */ private iterable $middlewares; diff --git a/src/Core/Container/ContainerMakerInterface.php b/src/Core/Container/ContainerMakerInterface.php new file mode 100644 index 0000000..1977af5 --- /dev/null +++ b/src/Core/Container/ContainerMakerInterface.php @@ -0,0 +1,12 @@ +containerMaker = $containerMaker; } diff --git a/src/Core/Secret/AbstractSecret.php b/src/Core/Secret/AbstractSecret.php index 897d3cf..6a2b7ea 100644 --- a/src/Core/Secret/AbstractSecret.php +++ b/src/Core/Secret/AbstractSecret.php @@ -16,7 +16,7 @@ public function stringData(StringMap $stringData): void { } - public static function kind(): string + final public static function kind(): string { return Secret::KIND; } diff --git a/src/Core/Service/AbstractService.php b/src/Core/Service/AbstractService.php index a17909c..fb3aac9 100644 --- a/src/Core/Service/AbstractService.php +++ b/src/Core/Service/AbstractService.php @@ -26,7 +26,7 @@ public function configureService(Service $service): void { } - public static function kind(): string + final public static function kind(): string { return Service::KIND; }