BConnect Business - Reference PHP

PointOfSale
in package

Attributes
#[ApiResource]
$operations: [ // new Post(), // new GetCollection(), // new Get(), // new Put(), // new Patch(), // new Post( // uriTemplate: "/point_of_sales/{id}/users", // controller: CreateUserForPointOfSale::class, // openapiContext: [ // "summary" => "Create a user of point of sale", // "requestBody" => [ // 'content' => [ // 'application/json' => [ // 'schema' => [ // "type" => "object", // "description" => "", // "deprecated" => false, // "properties" => [ // "email" => [ // "type" => "string" // ], // "roles" => [ // "type" => "array", // "items" => [ // "type" => "string" // ] // ], // "password" => [ // "type" => "string" // ], // "firstname" => [ // "type" => "string" // ], // "lastname" => [ // "type" => "string" // ], // "adresse" => [ // "type" => "string" // ] // ] // ] // ] // ] // ] // ], // name: "Create user for point of sale" // ), // new GetCollection( // uriTemplate: "/point_of_sales/{id}/users", // controller: GetUsersForPointOfSale::class, // openapiContext: [ // "summary" => "Get all users of point of sales" // ], // // name: "Create user for point of sale" // ), new \ApiPlatform\Metadata\Get(uriTemplate: "/point_of_sales/{id}/features", controller: \App\Controller\Api\FeatureController::class, openapiContext: ["summary" => "Get all features of point of sale"]), ]
$normalizationContext: ['groups' => ['read']]
$denormalizationContext: ['groups' => ['write']]
#[Entity]
$repositoryClass: \App\Repository\PointOfSaleRepository::class

Table of Contents

Properties

$address  : string|null
$business  : Business|null
$city  : string|null
$country  : string|null
$created_at  : DateTimeImmutable|null
$email  : string|null
$id  : int|null
$logo  : string|null
$name  : string|null
$phone_number  : string|null
$phoneIndex  : string|null
$updated_at  : DateTimeImmutable|null

Methods

__construct()  : mixed
getAddress()  : string|null
getBusiness()  : Business|null
getCity()  : string|null
getCountry()  : string|null
getCreatedAt()  : DateTimeImmutable|null
getEmail()  : string|null
getId()  : int|null
getLogo()  : string|null
getName()  : string|null
getPhoneIndex()  : string|null
getPhoneNumber()  : string|null
getUpdatedAt()  : DateTimeImmutable|null
setAddress()  : static
setBusiness()  : static
setCity()  : static
setCountry()  : static
setCreatedAt()  : static
setEmail()  : static
setLogo()  : static
setName()  : static
setPhoneIndex()  : static
setPhoneNumber()  : static
setUpdatedAt()  : static

Properties

$address

private string|null $address = null
Attributes
#[Column]
$length: 255
$nullable: true
#[Groups]
['read', 'write']

$business

private Business|null $business = null
Attributes
#[JoinColumn]
$nullable: false
#[ManyToOne]
$inversedBy: 'pointOfSales'

$city

private string|null $city = null
Attributes
#[Column]
$length: 255
$nullable: true
#[Groups]
['read', 'write']

$country

private string|null $country = null
Attributes
#[Column]
$length: 255
$nullable: true
#[Groups]
['read', 'write']

$created_at

private DateTimeImmutable|null $created_at = null
Attributes
#[Column]
$nullable: true

$email

private string|null $email = null
Attributes
#[Column]
$length: 255
$nullable: true
$unique: true
#[Groups]
['read', 'write']

$id

private int|null $id = null
Attributes
#[Column]
#[GeneratedValue]
#[Id]
private string|null $logo = null
Attributes
#[Column]
$length: 255
$nullable: true
#[Groups]
['read', 'write']

$name

private string|null $name = null
Attributes
#[Column]
$length: 255
$nullable: true
#[Groups]
['read', 'write']

$phone_number

private string|null $phone_number = null
Attributes
#[Column]
$length: 255
$nullable: true
#[Groups]
['read', 'write']

$phoneIndex

private string|null $phoneIndex = '+224'
Attributes
#[Column]
$length: 10
$nullable: true
#[Groups]
['read', 'write']

$updated_at

private DateTimeImmutable|null $updated_at = null
Attributes
#[Column]
$nullable: true

Methods

getAddress()

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

getCity()

public getCity() : 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

getId()

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

getName()

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

getPhoneIndex()

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

getPhoneNumber()

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

getUpdatedAt()

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

setAddress()

public setAddress(string|null $address) : static
Parameters
$address : string|null
Return values
static

setCity()

public setCity(string|null $city) : static
Parameters
$city : string|null
Return values
static

setCountry()

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

setCreatedAt()

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

setEmail()

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

setName()

public setName(string|null $name) : static
Parameters
$name : string|null
Return values
static

setPhoneIndex()

public setPhoneIndex(string|null $phoneIndex) : static
Parameters
$phoneIndex : string|null
Return values
static

setPhoneNumber()

public setPhoneNumber(string|null $phone_number) : static
Parameters
$phone_number : string|null
Return values
static

setUpdatedAt()

public setUpdatedAt(DateTimeImmutable $updated_at) : static
Parameters
$updated_at : DateTimeImmutable
Return values
static
On this page

Search results