Skip to content

Commit 14c3615

Browse files
committed
Remove ValueObjectInterface.php
1 parent dce7b84 commit 14c3615

File tree

13 files changed

+12
-57
lines changed

13 files changed

+12
-57
lines changed

src/Enum/Enum.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77

88
use InvalidArgumentException;
9-
use Myks92\ValueObjects\ValueObjectInterface;
109
use ReflectionClass;
1110
use ReflectionException;
1211
use Webmozart\Assert\Assert;
@@ -18,7 +17,7 @@
1817
*
1918
* @author Maxim Vorozhtsov <myks1992@mail.ru>
2019
*/
21-
abstract class Enum implements ValueObjectInterface
20+
abstract class Enum
2221
{
2322
/**
2423
* Store existing constants in a static cache per object.

src/Geography/Coordinate.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,14 @@
66
namespace Myks92\ValueObjects\Geography;
77

88

9-
use Myks92\ValueObjects\ValueObjectInterface;
109
use Webmozart\Assert\Assert;
1110

1211
/**
1312
* Class Coordinate
1413
*
1514
* @author Maxim Vorozhtsov <myks1992@mail.ru>
1615
*/
17-
class Coordinate implements ValueObjectInterface
16+
class Coordinate
1817
{
1918
/**
2019
* @var int min value for latitude

src/Identity/Network.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,14 @@
66
namespace Myks92\ValueObjects\Identity;
77

88

9-
use Myks92\ValueObjects\ValueObjectInterface;
109
use Webmozart\Assert\Assert;
1110

1211
/**
1312
* Class Network
1413
*
1514
* @author Maxim Vorozhtsov <myks1992@mail.ru>
1615
*/
17-
class Network implements ValueObjectInterface
16+
class Network
1817
{
1918
/**
2019
* @var string

src/Identity/Phone.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,14 @@
66
namespace Myks92\ValueObjects\Identity;
77

88

9-
use Myks92\ValueObjects\ValueObjectInterface;
109
use Webmozart\Assert\Assert;
1110

1211
/**
1312
* Class Phone
1413
*
1514
* @author Maxim Vorozhtsov <myks1992@mail.ru>
1615
*/
17-
class Phone implements ValueObjectInterface
16+
class Phone
1817
{
1918
public const PATTERN_COUNTRY = "/^[0-9]{1,3}$/";
2019
public const PATTERN_NUMBER = "/^[0-9]{10}$/";

src/Money/Money.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,14 @@
77

88

99
use InvalidArgumentException;
10-
use Myks92\ValueObjects\ValueObjectInterface;
1110
use Webmozart\Assert\Assert;
1211

1312
/**
1413
* Class Money for job with money
1514
*
1615
* @author Maxim Vorozhtsov <myks1992@mail.ru>
1716
*/
18-
class Money implements ValueObjectInterface
17+
class Money
1918
{
2019
/**
2120
* Amount

src/Number/Integer.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,15 @@
22

33
declare(strict_types=1);
44

5-
65
namespace Myks92\ValueObjects\Number;
76

87

9-
use Myks92\ValueObjects\ValueObjectInterface;
10-
118
/**
129
* Class Integer
1310
*
1411
* @author Maxim Vorozhtsov <myks1992@mail.ru>
1512
*/
16-
abstract class Integer implements ValueObjectInterface
13+
abstract class Integer
1714
{
1815
/**
1916
* @var int

src/Payment/Payment.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,15 @@
22

33
declare(strict_types=1);
44

5-
65
namespace Myks92\ValueObjects\Payment;
76

87

9-
use Myks92\ValueObjects\ValueObjectInterface;
10-
118
/**
129
* Defines the minimum requisites of a Payment Object.
1310
*
1411
* @author Maxim Vorozhtsov <myks1992@mail.ru>
1512
*/
16-
class Payment implements ValueObjectInterface
13+
class Payment
1714
{
1815
/**
1916
* @var string $method The payment name or title.

src/Person/Birthday.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,16 @@
55

66
namespace Myks92\ValueObjects\Person;
77

8-
98
use DateTimeImmutable;
109
use Exception;
1110
use InvalidArgumentException;
12-
use Myks92\ValueObjects\ValueObjectInterface;
1311

1412
/**
1513
* Class Birthday
1614
*
1715
* @author Maxim Vorozhtsov <myks1992@mail.ru>
1816
*/
19-
class Birthday implements ValueObjectInterface
17+
class Birthday
2018
{
2119
/**
2220
* @var DateTimeImmutable

src/Person/Name.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,14 @@
66
namespace Myks92\ValueObjects\Person;
77

88

9-
use Myks92\ValueObjects\ValueObjectInterface;
109
use Webmozart\Assert\Assert;
1110

1211
/**
1312
* Class Name
1413
*
1514
* @author Maxim Vorozhtsov <myks1992@mail.ru>
1615
*/
17-
class Name implements ValueObjectInterface
16+
class Name
1817
{
1918
/**
2019
* Last

src/Security/Token.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,14 @@
88

99
use DateTimeImmutable;
1010
use DomainException;
11-
use Myks92\ValueObjects\ValueObjectInterface;
1211
use Webmozart\Assert\Assert;
1312

1413
/**
1514
* Class Token
1615
*
1716
* @author Maxim Vorozhtsov <myks1992@mail.ru>
1817
*/
19-
class Token implements ValueObjectInterface
18+
class Token
2019
{
2120
/**
2221
* Value

0 commit comments

Comments
 (0)