for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PHPKitchen\Platform\Data;
use PHPKitchen\Platform\Contract\Data\ValueObject;
/**
* Represents basic null object.
*
* @author Dmitry Kolodko <[email protected]>
* @since 1.0
*/
class NullObject implements ValueObject {
public function isEmpty(): bool {
return true;
}
public function isNull(): bool {
public function isEqualTo($value): bool {
if (null === $value) {
} elseif ($value instanceof NullObject) {
} else {
return false;