Skip to content

Commit

Permalink
README: use attributes instead of annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
xificurk committed Apr 6, 2024
1 parent 65e03da commit 82099e7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions README.md
Expand Up @@ -40,16 +40,15 @@ Usage

Example usage in the entity:
```php
use Doctrine\ORM\Mapping as ORM;
use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\Entity;
use Brick\PhoneNumber\PhoneNumber;

/**
* @ORM\Entity
*/
#[Entity]
class Contact
{

/** @ORM\Column(type=PhoneNumber::class, nullable=false) */
#[Column(type: PhoneNumber::class, nullable: false)]
private PhoneNumber $phoneNumber;

public function getPhoneNumber(): PhoneNumber
Expand Down

0 comments on commit 82099e7

Please sign in to comment.