Ticket
class Ticket extends Ticket implements PrimaryKeyInterface
Ticket class
Properties
| protected string | $name | Ticket name | from Ticket |
| protected string | $type | Ticket type. One of the predefined(<a href=". | from Ticket |
| protected string | $content | Ticket content. Description of user's problem | from Ticket |
| protected string | $status | Ticket status. One of the predefined(new or seen) | from Ticket |
| protected DateTime | $createdAt | Date when ticket was created | from Ticket |
| protected DateTime | $updatedAt | Date when ticket was last updated | from Ticket |
| protected User | $user | User that created ticket. Can't be null | from Ticket |
| protected ArrayCollection | $comments | Collection of ticket comments | from Ticket |
| protected string | $filePath | Url of uploaded file. If not uploaded, property have value of NULL | |
| protected int | $fileId | Id of uploaded file. If not uploaded, property have value of NULL | |
| protected string | $fileName | File name | |
| protected File | $file | File uploaded with ticket(image, pdf,. | |
| protected Product | $product | Product that ticket is about. NULL if ticket status is not PRODUCT_QUESTION |
Methods
$this
setId(int $id)
No description
integer
getId()
No description
string
getFilePath()
No description
setFilePath(string $filePath)
No description
int
getFileId()
No description
string
getFileName()
No description
setFileName(string $fileName)
No description
getProduct()
No description
setAutoWebPath()
Function that copy 'file path', 'file name', 'file id' and sets it to ticket object
Details
in Ticket at line 122
__construct()
Ticket constructor.
Initialize comment property
in Ticket at line 130
ArrayCollection
getComments()
in Ticket at line 150
string
getType()
in Ticket at line 170
mixed
getContent()
in Ticket at line 190
string
getStatus()
in Ticket at line 222
mixed
getCreatedAt()
in Ticket at line 242
mixed
getUpdatedAt()
in Ticket at line 270
string
getName()
at line 109
$this
setId(int $id)
at line 119
integer
getId()
at line 127
File
getFile()
at line 147
string
getFilePath()
at line 157
Ticket
setFilePath(string $filePath)
at line 167
int
getFileId()
at line 177
Ticket
setFileId(int $fileId)
at line 187
string
getFileName()
at line 197
Ticket
setFileName(string $fileName)
at line 207
Product
getProduct()
at line 227
setAutoWebPath()
Function that copy 'file path', 'file name', 'file id' and sets it to ticket object