| 1 | <?php |
||
| 7 | class CreateOauthAuthCodesTable extends Migration |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * The database schema. |
||
| 11 | * |
||
| 12 | * @var \Illuminate\Database\Schema\Builder |
||
| 13 | */ |
||
| 14 | protected $schema; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Create a new migration instance. |
||
| 18 | * |
||
| 19 | * @return void |
||
|
|
|||
| 20 | */ |
||
| 21 | public function __construct() |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Run the migrations. |
||
| 28 | * |
||
| 29 | * @return void |
||
| 30 | */ |
||
| 31 | public function up() |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Reverse the migrations. |
||
| 45 | * |
||
| 46 | * @return void |
||
| 47 | */ |
||
| 48 | public function down() |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Get the migration connection name. |
||
| 55 | * |
||
| 56 | * @return string|null |
||
| 57 | */ |
||
| 58 | public function getConnection() |
||
| 62 | } |
||
| 63 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.