SpareParts /
Pillar
| 1 | <?php |
||
| 2 | namespace SpareParts\Pillar\Mapper\Dibi; |
||
| 3 | |||
| 4 | |||
| 5 | class ColumnInfo |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var string |
||
| 9 | */ |
||
| 10 | private $columnName; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | private $propertyName; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var TableInfo |
||
| 19 | */ |
||
| 20 | private $tableInfo; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var bool |
||
| 24 | */ |
||
| 25 | private $isPrimaryKey; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var bool |
||
| 29 | */ |
||
| 30 | private $enabledForSelect = true; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @var string|null |
||
| 34 | */ |
||
| 35 | private $customSelectSql; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @var bool |
||
| 39 | */ |
||
| 40 | private $isDeprecated; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param string $columnName |
||
| 44 | * @param string $propertyName |
||
| 45 | * @param TableInfo $tableInfo |
||
| 46 | * @param bool $isPrimaryKey |
||
| 47 | * @param bool $isDeprecated |
||
| 48 | * @param bool $enabledForSelect |
||
| 49 | * @param null $customSelectSql |
||
|
0 ignored issues
–
show
Documentation
Bug
introduced
by
Loading history...
|
|||
| 50 | */ |
||
| 51 | 6 | public function __construct($columnName, $propertyName, TableInfo $tableInfo, $isPrimaryKey, $isDeprecated, $enabledForSelect, $customSelectSql = null) |
|
| 52 | { |
||
| 53 | 6 | $this->columnName = $columnName; |
|
| 54 | 6 | $this->propertyName = $propertyName; |
|
| 55 | 6 | $this->tableInfo = $tableInfo; |
|
| 56 | 6 | $this->isPrimaryKey = $isPrimaryKey; |
|
| 57 | 6 | $this->enabledForSelect = $enabledForSelect; |
|
| 58 | 6 | $this->customSelectSql = $customSelectSql; |
|
| 59 | 6 | $this->isDeprecated = $isDeprecated; |
|
| 60 | 6 | } |
|
| 61 | |||
| 62 | /** |
||
| 63 | * @return string |
||
| 64 | */ |
||
| 65 | 3 | public function getColumnName() |
|
| 66 | { |
||
| 67 | 3 | return $this->columnName; |
|
| 68 | } |
||
| 69 | |||
| 70 | /** |
||
| 71 | * @return string |
||
| 72 | */ |
||
| 73 | 5 | public function getPropertyName() |
|
| 74 | { |
||
| 75 | 5 | return $this->propertyName; |
|
| 76 | } |
||
| 77 | |||
| 78 | /** |
||
| 79 | * @return TableInfo |
||
| 80 | */ |
||
| 81 | 5 | public function getTableInfo() |
|
| 82 | { |
||
| 83 | 5 | return $this->tableInfo; |
|
| 84 | } |
||
| 85 | |||
| 86 | /** |
||
| 87 | * @return bool |
||
| 88 | */ |
||
| 89 | 2 | public function isPrimaryKey() |
|
| 90 | { |
||
| 91 | 2 | return $this->isPrimaryKey; |
|
| 92 | } |
||
| 93 | |||
| 94 | /** |
||
| 95 | * @return bool |
||
| 96 | */ |
||
| 97 | 3 | public function isDeprecated() |
|
| 98 | { |
||
| 99 | 3 | return $this->isDeprecated; |
|
| 100 | } |
||
| 101 | |||
| 102 | /** |
||
| 103 | * @return bool |
||
| 104 | */ |
||
| 105 | public function isEnabledForSelect() |
||
| 106 | { |
||
| 107 | return $this->enabledForSelect; |
||
| 108 | } |
||
| 109 | |||
| 110 | /** |
||
| 111 | * @return string|null |
||
| 112 | */ |
||
| 113 | 1 | public function getCustomSelectSql() |
|
| 114 | { |
||
| 115 | 1 | return $this->customSelectSql; |
|
| 116 | } |
||
| 117 | } |
||
| 118 |