This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Entity; | |
class Email | |
{ | |
private ?int $id; | |
private string $email; | |
public function __construct(?int $id, string $email) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Entity; | |
use App\Exception\InvalidRegularExpression; | |
class UrlPattern | |
{ | |
private ?int $id; | |
private string $regex; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Entity; | |
use App\Helper\StringUtils; | |
use Webmozart\Assert\Assert; | |
class Url | |
{ | |
public const STATUS_SHORT_URL_FALSE = 'false'; |