fatcode/hydration

View on GitHub
src/Type/Nullable.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php declare(strict_types=1);

namespace FatCode\Hydration\Type;

trait Nullable
{
    private $nullable = false;

    public function nullable() : Type
    {
        $this->nullable = true;

        return $this;
    }

    public function isNullable() : bool
    {
        return $this->nullable;
    }
}