mirror of
https://github.com/danog/psalm-plugin-laravel.git
synced 2024-12-11 16:49:47 +01:00
30 lines
531 B
PHP
30 lines
531 B
PHP
|
<?php
|
||
|
namespace Psalm\LaravelPlugin;
|
||
|
|
||
|
class SchemaColumn
|
||
|
{
|
||
|
/** @var string */
|
||
|
public $name;
|
||
|
|
||
|
/** @var string */
|
||
|
public $type;
|
||
|
|
||
|
/** @var bool */
|
||
|
public $nullable;
|
||
|
|
||
|
/** @var ?array<int, string> */
|
||
|
public $options;
|
||
|
|
||
|
public function __construct(
|
||
|
string $name,
|
||
|
string $type,
|
||
|
bool $nullable = false,
|
||
|
?array $options = null
|
||
|
) {
|
||
|
$this->name = $name;
|
||
|
$this->type = $type;
|
||
|
$this->nullable = $nullable;
|
||
|
$this->options = $options;
|
||
|
}
|
||
|
}
|