for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace MichaelRubel\ValueObjects\Complex;
use Illuminate\Support\Traits\Conditionable;
use Illuminate\Support\Traits\Macroable;
use MichaelRubel\ValueObjects\ValueObject;
/**
* @method make(string $classString)
*/
class ClassString extends ValueObject
{
use Macroable, Conditionable;
Illuminate\Support\Traits\Macroable
$name
MichaelRubel\ValueObjects\Complex\ClassString
* @param string|null $classString
public function __construct(protected ?string $classString)
//
}
* @return bool
public function classExists(): bool
return class_exists($this->value());
public function interfaceExists(): bool
return interface_exists($this->value());
* @return string
public function value(): string
return (string) $this->classString;
* Get string representation of the value object.
*
public function __toString(): string
return $this->value();