for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Spiral\Core\Config;
/**
* Static permanent object
*/
final class Shared extends Binding
{
public function __construct(
public readonly object $value,
public readonly bool $singleton = false,
) {}
public function __toString(): string
return 'Shared object of class ' . $this->value::class;
}
* @return class-string
class-string
0
* @internal
public function getReturnClass(): string
return $this->value::class;