Skip to content

Commit

Permalink
misc: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
romm committed Oct 4, 2022
1 parent ad0f8fe commit b2889a3
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions src/Mapper/Object/Argument.php
Expand Up @@ -9,13 +9,6 @@
use CuyZ\Valinor\Definition\ParameterDefinition;
use CuyZ\Valinor\Definition\PropertyDefinition;
use CuyZ\Valinor\Type\Type;
use CuyZ\Valinor\Type\Types\NonEmptyStringType;
use CuyZ\Valinor\Type\Types\NullType;
use CuyZ\Valinor\Type\Types\PositiveIntegerType;
use CuyZ\Valinor\Type\Types\ShapedArrayElement;
use CuyZ\Valinor\Type\Types\ShapedArrayType;
use CuyZ\Valinor\Type\Types\StringValueType;
use CuyZ\Valinor\Type\Types\UnionType;

/** @internal */
final class Argument
Expand All @@ -37,24 +30,6 @@ private function __construct(string $name, Type $type)
$this->type = $type;
}

public static function forDateTime(): self
{
return new self('value', new UnionType(
new UnionType(PositiveIntegerType::get(), NonEmptyStringType::get()),
new ShapedArrayType(
new ShapedArrayElement(
new StringValueType('datetime'),
new UnionType(PositiveIntegerType::get(), NonEmptyStringType::get())
),
new ShapedArrayElement(
new StringValueType('format'),
new UnionType(NullType::get(), NonEmptyStringType::get()),
true
),
)
));
}

public static function fromParameter(ParameterDefinition $parameter): self
{
$instance = new self($parameter->name(), $parameter->type());
Expand Down

0 comments on commit b2889a3

Please sign in to comment.