Merge branch '5.3' into 5.4
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / system / database / table / column / BinaryDatabaseTableColumn.class.php
1 <?php
2
3 namespace wcf\system\database\table\column;
4
5 /**
6 * Represents a `binary` database table column.
7 *
8 * @author Matthias Schmidt
9 * @copyright 2001-2019 WoltLab GmbH
10 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
11 * @package WoltLabSuite\Core\System\Database\Table\Column
12 * @since 5.2
13 */
14 class BinaryDatabaseTableColumn extends AbstractDatabaseTableColumn implements ILengthDatabaseTableColumn
15 {
16 use TLengthDatabaseTableColumn;
17
18 /**
19 * @inheritDoc
20 */
21 protected $type = 'binary';
22
23 /**
24 * @inheritDoc
25 */
26 public function getMaximumLength()
27 {
28 return 255;
29 }
30
31 /**
32 * @inheritDoc
33 */
34 public function getMinimumLength()
35 {
36 return 1;
37 }
38 }