Documentation

Product
in package
implements JsonSerializable

Class Product

Tags
ORM\Entity

(repositoryClass="Vatjar\Data\Repository\ProductRepository")

ORM\Table

(name="product")

Table of Contents

Interfaces

JsonSerializable

Properties

$amazonProduct  : AmazonProduct|null
$client  : Client
$commodityCode  : string|null
$countryVatTypes  : array<string|int, VatType>|null
$currency  : Currency|null
$currencyId  : mixed
$id  : int|null
$itemName  : string|null
$module  : Module
$originCountry  : Country|null
$productId  : string|null
$status  : int
$userModule  : UserModule
$value  : float|null
$variantId  : string|null
$vatType  : VatType|null
$vatTypeId  : mixed
$weight  : float|null

Methods

getAmazonProduct()  : AmazonProduct|null
getClient()  : Client
Get $client
getCommodityCode()  : string|null
getCountryVatTypes()  : array<string|int, VatType>|null
getCurrency()  : Currency|null
getCurrencyId()  : int|null
getId()  : int
getItemName()  : string|null
getModule()  : Module
getOriginCountry()  : Country|null
getProductId()  : string|null
getStatus()  : int
getUser()  : Client
getUserModule()  : UserModule
getValue()  : float|null
getVariantId()  : string|null
getVatType()  : VatType|null
getVatTypeId()  : int|null
getWeight()  : float|null
jsonSerialize()  : mixed
setClient()  : self
Set $client
setCommodityCode()  : void
setCountryVatTypes()  : void
setCurrency()  : void
setCurrencyId()  : void
setItemName()  : void
setModule()  : void
setOriginCountry()  : void
setProductId()  : void
setStatus()  : void
setUser()  : mixed
setUserModule()  : void
setValue()  : void
setVariantId()  : void
setVatType()  : void
setVatTypeId()  : void
setWeight()  : void

Properties

$amazonProduct

private AmazonProduct|null $amazonProduct
Tags
MaxDepth

(2)

ORM\OneToMany

(targetEntity="AmazonProduct", mappedBy="product")

$client

private Client $client
Tags
MaxDepth

(2)

ORM\ManyToOne

(targetEntity="Client", inversedBy="products")

ORM\JoinColumn

(name="user_id", referencedColumnName="id")

$commodityCode

private string|null $commodityCode
Tags
ORM\Column

(type="text", name="comm_code", nullable=true)

$countryVatTypes

private array<string|int, VatType>|null $countryVatTypes
Tags
MaxDepth

(1)

ORM\OneToMany

(targetEntity="CountryVatTypes", mappedBy="product")

$currency

private Currency|null $currency
Tags
MaxDepth

(1)

ORM\ManyToOne

(targetEntity="Currency", inversedBy="currency")

ORM\JoinColumn

(name="currency_id", referencedColumnName="id", nullable=true)

$currencyId

private mixed $currencyId
Tags
ORM\Column

(name="currency_id", type="smallint", nullable=true)

$id

private int|null $id
Tags
ORM\Id
ORM\GeneratedValue
ORM\Column

(type="integer", name="id")

$itemName

private string|null $itemName
Tags
ORM\Column

(name="item_name", type="string", nullable=true)

$module

private Module $module
Tags
MaxDepth

(1)

ORM\ManyToOne

(targetEntity="Module", inversedBy="module")

ORM\JoinColumn

(name="module", referencedColumnName="id")

$originCountry

private Country|null $originCountry
Tags
MaxDepth

(1)

ORM\ManyToOne

(targetEntity="Country", inversedBy="originCountry")

ORM\JoinColumn

(name="origin_country_id", referencedColumnName="id", nullable=true)

$productId

private string|null $productId
Tags
ORM\Column

(name="product_id", type="string", nullable=true)

$status

private int $status
Tags
ORM\Column

(type="smallint", name="status")

$userModule

private UserModule $userModule
Tags
ORM\ManyToOne

(targetEntity="UserModule", inversedBy="products")

ORM\JoinColumn

(name="user_module_id", referencedColumnName="id")

$value

private float|null $value
Tags
ORM\Column

(type="float", name="val", nullable=true, scale=2)

$variantId

private string|null $variantId
Tags
ORM\Column

(name="variant_id", type="string", nullable=true)

$vatType

private VatType|null $vatType
Tags
MaxDepth

(1)

ORM\ManyToOne

(targetEntity="VatType", inversedBy="vatType")

ORM\JoinColumn

(name="vat_type_id", referencedColumnName="id", nullable=true)

$vatTypeId

private mixed $vatTypeId
Tags
ORM\Column

(name="vat_type_id", type="smallint", nullable=true)

$weight

private float|null $weight
Tags
ORM\Column

(type="float", name="weight", nullable=true, scale=2)

Methods

getCommodityCode()

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

$commodityCode

getCountryVatTypes()

public getCountryVatTypes() : array<string|int, VatType>|null
Return values
array<string|int, VatType>|null

$countryVatTypes

getCurrencyId()

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

$currencyId

getId()

public getId() : int
Return values
int

$id

getItemName()

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

getProductId()

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

getStatus()

public getStatus() : int
Return values
int

$status

getValue()

public getValue() : float|null
Return values
float|null

$value

getVariantId()

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

getVatTypeId()

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

$vatTypeId

getWeight()

public getWeight() : float|null
Return values
float|null

$weight

jsonSerialize()

public jsonSerialize() : mixed

setClient()

Set $client

public setClient(Client $client) : self
Parameters
$client : Client

$client

Return values
self

setCommodityCode()

public setCommodityCode(string|null $commodityCode) : void
Parameters
$commodityCode : string|null

setCountryVatTypes()

public setCountryVatTypes(Collection|null $countryVatTypes) : void
Parameters
$countryVatTypes : Collection|null

setCurrencyId()

public setCurrencyId(int|null $currencyId) : void
Parameters
$currencyId : int|null

setItemName()

public setItemName(string|null $itemName) : void
Parameters
$itemName : string|null

setOriginCountry()

public setOriginCountry(Country|null $originCountry) : void
Parameters
$originCountry : Country|null

setProductId()

public setProductId(string|null $productId) : void
Parameters
$productId : string|null

setStatus()

public setStatus(int $status) : void
Parameters
$status : int

setValue()

public setValue(float|null $value) : void
Parameters
$value : float|null

setVariantId()

public setVariantId(string|null $variantId) : void
Parameters
$variantId : string|null

setVatTypeId()

public setVatTypeId(int|null $vatTypeId) : void
Parameters
$vatTypeId : int|null

setWeight()

public setWeight(float|null $weight) : void
Parameters
$weight : float|null

        
On this page

Search results