for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
/**
* Spiral Framework.
*
* @license MIT
* @author Anton Titov (Wolfy-J)
*/
namespace Cycle\Annotated\Annotation;
use Cycle\Annotated\Annotation\Table\Index;
use Spiral\Annotations\AbstractAnnotation;
final class Table extends AbstractAnnotation
{
public const NAME = 'table';
public const SCHEMA = [
'columns' => [Column::class],
'indexes' => [Index::class],
];
/** @var array */
protected $columns = [];
protected $indexes = [];
* @return Column[]
public function getColumns(): array
return $this->columns;
}
* @return Index[]
public function getIndexes(): array
return $this->indexes;