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 Illuminate\Support\Traits\Tappable;
use MichaelRubel\ValueObjects\ValueObject;
class ClassString implements ValueObject
{
use Macroable, Conditionable, Tappable;
Illuminate\Support\Traits\Macroable
$name
MichaelRubel\ValueObjects\Complex\ClassString
/**
* Create a new value object instance.
*
* @param string|null $classString
*/
final public function __construct(public ?string $classString)
//
}
* Return a new instance of value object.
* @return static
public static function make(?string $classString): static
return new static($classString);
* @return bool
public function classExists(): bool
return class_exists($this->value());
public function interfaceExists(): bool
return interface_exists($this->value());
* Get the last name.
* @return string
public function value(): string
return (string) $this->classString;
* Return the first UUID if cast to string.
public function __toString(): string
return $this->value();