-
-
Save beberlei/b758c7a14e13d51074abed602c265b5c to your computer and use it in GitHub Desktop.
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 | |
class User | |
{ | |
/** @ORM\Column(type="string") */ | |
private string $email; | |
public function __construct(string $email) | |
{ | |
$this->email = $email; | |
} | |
} | |
class User | |
{ | |
public function __construct( | |
/** @ORM\Column(type="string") */ | |
private string $email, | |
) {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment