Contact
in package
Contact enregistré par un utilisateur depuis le scan d'une carte de visite.
Un contact est une copie autonome des coordonnées saisies ou scannées : il
n'est pas lié à l'utilisateur dont la carte a été scannée, de sorte que la
modification ultérieure de cette carte n'altère pas les contacts déjà
enregistrés. Seul firstname est obligatoire ; les autres champs sont
renseignés au fil de l'eau selon ce que la carte source expose.
Groupes de sérialisation : contact:read en lecture, contact:write pour
les champs modifiables via l'API.
Attributes
- #[Entity]
- $repositoryClass: \App\Repository\ContactRepository::class
Table of Contents
Properties
- $activitySector : string|null
- $company : string|null
- $country : string|null
- $createdAt : DateTimeImmutable|null
- $email : string|null
- $firstname : string|null
- $id : int|null
- $isBCard : bool|null
- $jobTitle : string|null
- $lastname : string|null
- $note : string|null
- $phone : string|null
- $photo : string|null
- $updatedAt : DateTimeImmutable|null
- $user : User|null
Methods
- __construct() : mixed
- getActivitySector() : string|null
- getCompany() : string|null
- getCountry() : string|null
- getCreatedAt() : DateTimeImmutable|null
- getEmail() : string|null
- getFirstname() : string|null
- getId() : int|null
- getJobTitle() : string|null
- getLastname() : string|null
- getNote() : string|null
- getPhone() : string|null
- getPhoto() : string|null
- getUpdatedAt() : DateTimeImmutable|null
- getUser() : User|null
- isBCard() : bool|null
- setActivitySector() : static
- setCompany() : static
- setCountry() : static
- setCreatedAt() : static
- setEmail() : static
- setFirstname() : static
- setIsBCard() : static
- setJobTitle() : static
- setLastname() : static
- setNote() : static
- setPhone() : static
- setPhoto() : static
- setUpdatedAt() : static
- setUser() : static
Properties
$activitySector
private
string|null
$activitySector
= null
Attributes
- #[Column]
- $length: 255
- $nullable: true
- #[Groups]
- ['contact:read', 'contact:write']
$company
private
string|null
$company
= null
Attributes
- #[Column]
- $length: 255
- $nullable: true
- #[Groups]
- ['contact:read', 'contact:write']
$country
private
string|null
$country
= null
Attributes
- #[Column]
- $length: 255
- $nullable: true
- #[Groups]
- ['contact:read', 'contact:write']
$createdAt
private
DateTimeImmutable|null
$createdAt
Attributes
- #[Column]
private
string|null
$email
= null
Attributes
- #[Column]
- $length: 255
- $nullable: true
- #[Groups]
- ['contact:read', 'contact:write']
$firstname
private
string|null
$firstname
= null
Attributes
- #[Column]
- $length: 255
- #[Groups]
- ['contact:read', 'contact:write']
$id
private
int|null
$id
= null
Attributes
- #[Column]
- #[GeneratedValue]
- #[Groups]
- ['contact:read']
- #[Id]
$isBCard
private
bool|null
$isBCard
= false
Attributes
- #[Column]
- $type: \Doctrine\DBAL\Types\Types::BOOLEAN
- $options: ['default' => false]
$jobTitle
private
string|null
$jobTitle
= null
Attributes
- #[Column]
- $length: 255
- $nullable: true
- #[Groups]
- ['contact:read', 'contact:write']
$lastname
private
string|null
$lastname
= null
Attributes
- #[Column]
- $length: 255
- $nullable: true
- #[Groups]
- ['contact:read', 'contact:write']
$note
private
string|null
$note
= null
Attributes
- #[Column]
- $type: \Doctrine\DBAL\Types\Types::TEXT
- $nullable: true
- #[Groups]
- ['contact:read', 'contact:write']
$phone
private
string|null
$phone
= null
Attributes
- #[Column]
- $length: 255
- $nullable: true
- #[Groups]
- ['contact:read', 'contact:write']
$photo
private
string|null
$photo
= null
Attributes
- #[Column]
- $length: 255
- $nullable: true
- #[Groups]
- ['contact:read', 'contact:write']
$updatedAt
private
DateTimeImmutable|null
$updatedAt
= null
Attributes
- #[Column]
- $nullable: true
$user
private
User|null
$user
= null
Attributes
- #[JoinColumn]
- $nullable: false
- #[ManyToOne]
- $inversedBy: 'contacts'
Methods
__construct()
public
__construct() : mixed
getActivitySector()
public
getActivitySector() : string|null
Return values
string|nullgetCompany()
public
getCompany() : string|null
Return values
string|nullgetCountry()
public
getCountry() : string|null
Return values
string|nullgetCreatedAt()
public
getCreatedAt() : DateTimeImmutable|null
Return values
DateTimeImmutable|nullgetEmail()
public
getEmail() : string|null
Return values
string|nullgetFirstname()
public
getFirstname() : string|null
Return values
string|nullgetId()
public
getId() : int|null
Return values
int|nullgetJobTitle()
public
getJobTitle() : string|null
Return values
string|nullgetLastname()
public
getLastname() : string|null
Return values
string|nullgetNote()
public
getNote() : string|null
Return values
string|nullgetPhone()
public
getPhone() : string|null
Return values
string|nullgetPhoto()
public
getPhoto() : string|null
Return values
string|nullgetUpdatedAt()
public
getUpdatedAt() : DateTimeImmutable|null
Return values
DateTimeImmutable|nullgetUser()
public
getUser() : User|null
Return values
User|nullisBCard()
public
isBCard() : bool|null
Return values
bool|nullsetActivitySector()
public
setActivitySector(string|null $activitySector) : static
Parameters
- $activitySector : string|null
Return values
staticsetCompany()
public
setCompany(string|null $company) : static
Parameters
- $company : string|null
Return values
staticsetCountry()
public
setCountry(string|null $country) : static
Parameters
- $country : string|null
Return values
staticsetCreatedAt()
public
setCreatedAt(DateTimeImmutable $createdAt) : static
Parameters
- $createdAt : DateTimeImmutable
Return values
staticsetEmail()
public
setEmail(string|null $email) : static
Parameters
- $email : string|null
Return values
staticsetFirstname()
public
setFirstname(string $firstname) : static
Parameters
- $firstname : string
Return values
staticsetIsBCard()
public
setIsBCard(bool $isBCard) : static
Parameters
- $isBCard : bool
Return values
staticsetJobTitle()
public
setJobTitle(string|null $jobTitle) : static
Parameters
- $jobTitle : string|null
Return values
staticsetLastname()
public
setLastname(string|null $lastname) : static
Parameters
- $lastname : string|null
Return values
staticsetNote()
public
setNote(string|null $note) : static
Parameters
- $note : string|null
Return values
staticsetPhone()
public
setPhone(string|null $phone) : static
Parameters
- $phone : string|null
Return values
staticsetPhoto()
public
setPhoto(string|null $photo) : static
Parameters
- $photo : string|null
Return values
staticsetUpdatedAt()
public
setUpdatedAt(DateTimeImmutable|null $updatedAt) : static
Parameters
- $updatedAt : DateTimeImmutable|null
Return values
staticsetUser()
public
setUser(User|null $user) : static
Parameters
- $user : User|null