1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-10 23:18:40 +01:00
psalm/src/Psalm/Storage/Assertion.php

38 lines
683 B
PHP
Raw Normal View History

<?php
namespace Psalm\Storage;
use Psalm\Type\Atomic;
abstract class Assertion
{
/** @psalm-mutation-free */
abstract public function getNegation(): Assertion;
/** @psalm-mutation-free */
abstract public function isNegationOf(self $assertion): bool;
abstract public function __toString(): string;
public function isNegation(): bool
{
return false;
}
/** @psalm-mutation-free */
public function hasEquality(): bool
{
return false;
}
/** @psalm-mutation-free */
public function getAtomicType(): ?Atomic
{
return null;
}
public function setAtomicType(Atomic $type): void
{
}
}