Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| ConstraintKey | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| renderType | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php declare(strict_types=1); |
| 2 | /* |
| 3 | * This file is part of Aplus Framework Database Library. |
| 4 | * |
| 5 | * (c) Natan Felles <natanfelles@gmail.com> |
| 6 | * |
| 7 | * For the full copyright and license information, please view the LICENSE |
| 8 | * file that was distributed with this source code. |
| 9 | */ |
| 10 | namespace Framework\Database\Definition\Table\Indexes\Keys; |
| 11 | |
| 12 | use Framework\Database\Definition\Table\Constraint; |
| 13 | use Framework\Database\Definition\Table\Indexes\Index; |
| 14 | |
| 15 | /** |
| 16 | * Class ConstraintKey. |
| 17 | * |
| 18 | * @package database |
| 19 | */ |
| 20 | abstract class ConstraintKey extends Index |
| 21 | { |
| 22 | use Constraint; |
| 23 | |
| 24 | protected function renderType() : string |
| 25 | { |
| 26 | return $this->renderConstraint() . parent::renderType(); |
| 27 | } |
| 28 | } |