Skip to content

Instantly share code, notes, and snippets.

<?php
namespace App\Entity;
class Email
{
private ?int $id;
private string $email;
public function __construct(?int $id, string $email)
<?php
namespace App\Entity;
use App\Exception\InvalidRegularExpression;
class UrlPattern
{
private ?int $id;
private string $regex;
<?php
namespace App\Entity;
use App\Helper\StringUtils;
use Webmozart\Assert\Assert;
class Url
{
public const STATUS_SHORT_URL_FALSE = 'false';