| 1 | <?php |
||
| 7 | class CreateOauthRefreshTokensTable 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() |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Reverse the migrations. |
||
| 43 | * |
||
| 44 | * @return void |
||
| 45 | */ |
||
| 46 | public function down() |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Get the migration connection name. |
||
| 53 | * |
||
| 54 | * @return string|null |
||
| 55 | */ |
||
| 56 | public function getConnection() |
||
| 60 | } |
||
| 61 |
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.