Explicitly implement `IDefaultValueDatabaseTableColumn` in supported column types
[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
15 IDefaultValueDatabaseTableColumn,
16 ILengthDatabaseTableColumn
17 {
18 use TDefaultValueDatabaseTableColumn;
19 use TLengthDatabaseTableColumn;
20
21 /**
22 * @inheritDoc
23 */
24 protected $type = 'binary';
25
26 /**
27 * @inheritDoc
28 */
29 public function getMaximumLength()
30 {
31 return 255;
32 }
33
34 /**
35 * @inheritDoc
36 */
37 public function getMinimumLength()
38 {
39 return 1;
40 }
41 }