|
| 1 | +<?php |
| 2 | + |
| 3 | +declare(strict_types=1); |
| 4 | + |
| 5 | +namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\SimpleCasts\Models; |
| 6 | + |
| 7 | +use Illuminate\Database\Eloquent\Model; |
| 8 | + |
| 9 | +/** |
| 10 | + * Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\SimpleCasts\Models\SimpleCast |
| 11 | + * |
| 12 | + * @property integer $cast_to_int |
| 13 | + * @property integer $cast_to_integer |
| 14 | + * @property float $cast_to_real |
| 15 | + * @property float $cast_to_float |
| 16 | + * @property float $cast_to_double |
| 17 | + * @property string $cast_to_decimal |
| 18 | + * @property string $cast_to_string |
| 19 | + * @property boolean $cast_to_bool |
| 20 | + * @property boolean $cast_to_boolean |
| 21 | + * @property object $cast_to_object |
| 22 | + * @property array $cast_to_array |
| 23 | + * @property array $cast_to_json |
| 24 | + * @property \Illuminate\Support\Collection $cast_to_collection |
| 25 | + * @property \Illuminate\Support\Carbon $cast_to_date |
| 26 | + * @property \Illuminate\Support\Carbon $cast_to_datetime |
| 27 | + * @property \Illuminate\Support\Carbon $cast_to_custom_datetime |
| 28 | + * @property \Carbon\CarbonImmutable $cast_to_immutable_date |
| 29 | + * @property \Carbon\CarbonImmutable $cast_to_immutable_custom_datetime |
| 30 | + * @property \Carbon\CarbonImmutable $cast_to_immutable_datetime |
| 31 | + * @property integer $cast_to_timestamp |
| 32 | + * @property mixed $cast_to_encrypted |
| 33 | + * @property array $cast_to_encrypted_array |
| 34 | + * @property \Illuminate\Support\Collection $cast_to_encrypted_collection |
| 35 | + * @property array $cast_to_encrypted_json |
| 36 | + * @property object $cast_to_encrypted_object |
| 37 | + * @method static \Illuminate\Database\Eloquent\Builder|SimpleCast newModelQuery() |
| 38 | + * @method static \Illuminate\Database\Eloquent\Builder|SimpleCast newQuery() |
| 39 | + * @method static \Illuminate\Database\Eloquent\Builder|SimpleCast query() |
| 40 | + * @method static \Illuminate\Database\Eloquent\Builder|SimpleCast whereCastToArray($value) |
| 41 | + * @method static \Illuminate\Database\Eloquent\Builder|SimpleCast whereCastToBool($value) |
| 42 | + * @method static \Illuminate\Database\Eloquent\Builder|SimpleCast whereCastToBoolean($value) |
| 43 | + * @method static \Illuminate\Database\Eloquent\Builder|SimpleCast whereCastToCollection($value) |
| 44 | + * @method static \Illuminate\Database\Eloquent\Builder|SimpleCast whereCastToCustomDatetime($value) |
| 45 | + * @method static \Illuminate\Database\Eloquent\Builder|SimpleCast whereCastToDate($value) |
| 46 | + * @method static \Illuminate\Database\Eloquent\Builder|SimpleCast whereCastToDatetime($value) |
| 47 | + * @method static \Illuminate\Database\Eloquent\Builder|SimpleCast whereCastToDecimal($value) |
| 48 | + * @method static \Illuminate\Database\Eloquent\Builder|SimpleCast whereCastToDouble($value) |
| 49 | + * @method static \Illuminate\Database\Eloquent\Builder|SimpleCast whereCastToEncrypted($value) |
| 50 | + * @method static \Illuminate\Database\Eloquent\Builder|SimpleCast whereCastToEncryptedArray($value) |
| 51 | + * @method static \Illuminate\Database\Eloquent\Builder|SimpleCast whereCastToEncryptedCollection($value) |
| 52 | + * @method static \Illuminate\Database\Eloquent\Builder|SimpleCast whereCastToEncryptedJson($value) |
| 53 | + * @method static \Illuminate\Database\Eloquent\Builder|SimpleCast whereCastToEncryptedObject($value) |
| 54 | + * @method static \Illuminate\Database\Eloquent\Builder|SimpleCast whereCastToFloat($value) |
| 55 | + * @method static \Illuminate\Database\Eloquent\Builder|SimpleCast whereCastToImmutableCustomDatetime($value) |
| 56 | + * @method static \Illuminate\Database\Eloquent\Builder|SimpleCast whereCastToImmutableDate($value) |
| 57 | + * @method static \Illuminate\Database\Eloquent\Builder|SimpleCast whereCastToImmutableDatetime($value) |
| 58 | + * @method static \Illuminate\Database\Eloquent\Builder|SimpleCast whereCastToInt($value) |
| 59 | + * @method static \Illuminate\Database\Eloquent\Builder|SimpleCast whereCastToInteger($value) |
| 60 | + * @method static \Illuminate\Database\Eloquent\Builder|SimpleCast whereCastToJson($value) |
| 61 | + * @method static \Illuminate\Database\Eloquent\Builder|SimpleCast whereCastToObject($value) |
| 62 | + * @method static \Illuminate\Database\Eloquent\Builder|SimpleCast whereCastToReal($value) |
| 63 | + * @method static \Illuminate\Database\Eloquent\Builder|SimpleCast whereCastToString($value) |
| 64 | + * @method static \Illuminate\Database\Eloquent\Builder|SimpleCast whereCastToTimestamp($value) |
| 65 | + * @mixin \Eloquent |
| 66 | + */ |
| 67 | +class SimpleCast extends Model |
| 68 | +{ |
| 69 | + protected $casts = [ |
| 70 | + 'cast_to_int' => 'int', |
| 71 | + 'cast_to_integer' => 'integer', |
| 72 | + 'cast_to_real' => 'real', |
| 73 | + 'cast_to_float' => 'float', |
| 74 | + 'cast_to_double' => 'double', |
| 75 | + 'cast_to_decimal' => 'decimal:4', |
| 76 | + 'cast_to_string' => 'string', |
| 77 | + 'cast_to_bool' => 'bool', |
| 78 | + 'cast_to_boolean' => 'boolean', |
| 79 | + 'cast_to_object' => 'object', |
| 80 | + 'cast_to_array' => 'array', |
| 81 | + 'cast_to_json' => 'json', |
| 82 | + 'cast_to_collection' => 'collection', |
| 83 | + 'cast_to_date' => 'date', |
| 84 | + 'cast_to_datetime' => 'datetime', |
| 85 | + 'cast_to_custom_datetime' => 'custom_datetime:Y-m-d H:i:s', |
| 86 | + 'cast_to_immutable_date' => 'immutable_date', |
| 87 | + 'cast_to_immutable_custom_datetime' => 'immutable_custom_datetime:Y-m-d H:i:s', |
| 88 | + 'cast_to_immutable_datetime' => 'immutable_datetime', |
| 89 | + 'cast_to_timestamp' => 'timestamp', |
| 90 | + 'cast_to_encrypted' => 'encrypted', |
| 91 | + 'cast_to_encrypted_array' => 'encrypted:array', |
| 92 | + 'cast_to_encrypted_collection' => 'encrypted:collection', |
| 93 | + 'cast_to_encrypted_json' => 'encrypted:json', |
| 94 | + 'cast_to_encrypted_object' => 'encrypted:object', |
| 95 | + ]; |
| 96 | +} |
0 commit comments