PointOfSale
-
#[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
$address
private
string|null
$address
= null
-
#[Column]
-
$length: 255
-
$nullable: true
-
#[Groups]
-
['read', 'write']
$business
private
Business|null
$business
= null
-
#[JoinColumn]
-
$nullable: false
-
#[ManyToOne]
-
$inversedBy: 'pointOfSales'
$city
private
string|null
$city
= null
-
#[Column]
-
$length: 255
-
$nullable: true
-
#[Groups]
-
['read', 'write']
$country
private
string|null
$country
= null
-
#[Column]
-
$length: 255
-
$nullable: true
-
#[Groups]
-
['read', 'write']
$created_at
private
DateTimeImmutable|null
$created_at
= null
-
#[Column]
-
$nullable: true
$email
private
string|null
$email
= null
-
#[Column]
-
$length: 255
-
$nullable: true
-
$unique: true
-
#[Groups]
-
['read', 'write']
$id
private
int|null
$id
= null
-
#[Column]
-
#[GeneratedValue]
-
#[Id]
$logo
private
string|null
$logo
= null
-
#[Column]
-
$length: 255
-
$nullable: true
-
#[Groups]
-
['read', 'write']
$name
private
string|null
$name
= null
-
#[Column]
-
$length: 255
-
$nullable: true
-
#[Groups]
-
['read', 'write']
$phone_number
private
string|null
$phone_number
= null
-
#[Column]
-
$length: 255
-
$nullable: true
-
#[Groups]
-
['read', 'write']
$phoneIndex
private
string|null
$phoneIndex
= '+224'
-
#[Column]
-
$length: 10
-
$nullable: true
-
#[Groups]
-
['read', 'write']
$updated_at
private
DateTimeImmutable|null
$updated_at
= null
-
#[Column]
-
$nullable: true
__construct()
public
__construct() : mixed
getAddress()
public
getAddress() : string|null
Return values
string|null
getBusiness()
public
getBusiness() : Business|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
getLogo()
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
-
setBusiness()
public
setBusiness(Business|null $business) : static
Parameters
-
$business
: Business|null
-
setCity()
public
setCity(string|null $city) : static
Parameters
-
$city
: string|null
-
setCountry()
public
setCountry(string|null $country) : static
Parameters
-
$country
: string|null
-
setCreatedAt()
public
setCreatedAt(DateTimeImmutable $created_at) : static
Parameters
-
$created_at
: DateTimeImmutable
-
setEmail()
public
setEmail(string|null $email) : static
Parameters
-
$email
: string|null
-
setLogo()
public
setLogo(string|null $logo) : static
Parameters
-
$logo
: string|null
-
setName()
public
setName(string|null $name) : static
Parameters
-
$name
: string|null
-
setPhoneIndex()
public
setPhoneIndex(string|null $phoneIndex) : static
Parameters
-
$phoneIndex
: string|null
-
setPhoneNumber()
public
setPhoneNumber(string|null $phone_number) : static
Parameters
-
$phone_number
: string|null
-
setUpdatedAt()
public
setUpdatedAt(DateTimeImmutable $updated_at) : static
Parameters
-
$updated_at
: DateTimeImmutable
-