BCard - Documentation technique

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]

$email

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|null

getCompany()

public getCompany() : string|null
Return values
string|null

getCountry()

public getCountry() : string|null
Return values
string|null

getCreatedAt()

public getCreatedAt() : DateTimeImmutable|null
Return values
DateTimeImmutable|null

getEmail()

public getEmail() : string|null
Return values
string|null

getFirstname()

public getFirstname() : string|null
Return values
string|null

getId()

public getId() : int|null
Return values
int|null

getJobTitle()

public getJobTitle() : string|null
Return values
string|null

getLastname()

public getLastname() : string|null
Return values
string|null

getNote()

public getNote() : string|null
Return values
string|null

getPhone()

public getPhone() : string|null
Return values
string|null

getPhoto()

public getPhoto() : string|null
Return values
string|null

getUpdatedAt()

public getUpdatedAt() : DateTimeImmutable|null
Return values
DateTimeImmutable|null

isBCard()

public isBCard() : bool|null
Return values
bool|null

setActivitySector()

public setActivitySector(string|null $activitySector) : static
Parameters
$activitySector : string|null
Return values
static

setCompany()

public setCompany(string|null $company) : static
Parameters
$company : string|null
Return values
static

setCountry()

public setCountry(string|null $country) : static
Parameters
$country : string|null
Return values
static

setCreatedAt()

public setCreatedAt(DateTimeImmutable $createdAt) : static
Parameters
$createdAt : DateTimeImmutable
Return values
static

setEmail()

public setEmail(string|null $email) : static
Parameters
$email : string|null
Return values
static

setFirstname()

public setFirstname(string $firstname) : static
Parameters
$firstname : string
Return values
static

setIsBCard()

public setIsBCard(bool $isBCard) : static
Parameters
$isBCard : bool
Return values
static

setJobTitle()

public setJobTitle(string|null $jobTitle) : static
Parameters
$jobTitle : string|null
Return values
static

setLastname()

public setLastname(string|null $lastname) : static
Parameters
$lastname : string|null
Return values
static

setNote()

public setNote(string|null $note) : static
Parameters
$note : string|null
Return values
static

setPhone()

public setPhone(string|null $phone) : static
Parameters
$phone : string|null
Return values
static

setPhoto()

public setPhoto(string|null $photo) : static
Parameters
$photo : string|null
Return values
static

setUpdatedAt()

public setUpdatedAt(DateTimeImmutable|null $updatedAt) : static
Parameters
$updatedAt : DateTimeImmutable|null
Return values
static

setUser()

public setUser(User|null $user) : static
Parameters
$user : User|null
Return values
static

        
On this page

Search results