-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathExampleTicketBase.php
More file actions
48 lines (44 loc) · 1.44 KB
/
ExampleTicketBase.php
File metadata and controls
48 lines (44 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
/** @noinspection PhpIncompatibleReturnTypeInspection
* @noinspection ReturnTypeCanBeDeclaredInspection
* @noinspection DuplicatedCode
* @noinspection PhpUnused
* @noinspection PhpUndefinedMethodInspection
* @noinspection PhpUnusedLocalVariableInspection
* @noinspection PhpUnusedAliasInspection
* @noinspection NullPointerExceptionInspection
* @noinspection SenselessProxyMethodInspection
* @noinspection PhpParameterByRefIsNotUsedAsReferenceInspection
*/
namespace eftec\exampleticket\repo;
use eftec\PdoOne;
use eftec\_BasePdoOneRepo;
use Exception;
/**
* Generated by PdoOne Version {version}.
* @copyright (c) Jorge Castro C. MIT License https://github.com/EFTEC/PdoOne
* Class ExampleTicketBase
*/
class ExampleTicketBase extends _BasePdoOneRepo
{
const type = 'mysql';
const NS = 'eftec\exampleticket\repo\\';
/**
* @var bool if true then it uses objects (instead of array) in the
* methods tolist(),first(),insert(),update() and delete()
*/
public static $useModel=false;
/** @var string[] it is used to set the relations betweeen table (key) and class (value) */
const RELATIONS = [
'tickets' => 'TicketsRepo'
];
/**
* With the name of the table, we get the class
* @param string $tableName
*
* @return string[]
*/
protected function tabletoClass($tableName) {
return static::RELATIONS[$tableName];
}
}