| 1 | <?php |
||
| 12 | class AbstractElement |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Element name. |
||
| 16 | * |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | protected $name = ''; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Parent table name. |
||
| 23 | * |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | protected $table = ''; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param string $table |
||
| 30 | * @param string $name |
||
| 31 | */ |
||
| 32 | public function __construct(string $table, string $name) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Associated table name (full name). |
||
| 40 | * |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | public function getTable(): string |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Set element name. |
||
| 50 | * |
||
| 51 | * @param string $name |
||
| 52 | * |
||
| 53 | * @return $this |
||
| 54 | */ |
||
| 55 | public function setName(string $name) |
||
| 61 | |||
| 62 | /** |
||
| 63 | * Get element name (unquoted). |
||
| 64 | * |
||
| 65 | * @return string |
||
| 66 | */ |
||
| 67 | public function getName(): string |
||
| 71 | } |