src/StatedClass/Automated/Assertion/Assertion.php
public function with(string $property, $exceptedValue): Assertion
    {
        $this->propertiesAssertions[$property] = $exceptedValue;

        return $this;
    }
public function with(string $property, $exceptedValue): Assertion
    {
        $this->propertiesAssertions[$property] = $exceptedValue;

        return $this;
    }
To register an assertion on a property. $exceptedValue can be the excepted value or a invokable object
Some invokable class are available in Teknoo\States\LifeCycle\StatedClass\Automated\Assertion\Property.

@param string $property
@param mixed  $exceptedValue

@return Assertion