File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed
Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,6 @@ Create enums by extending one of:
3030 * ` EKvedaras\PHPEnum\Arrayy\Enum `
3131
3232``` php
33- <?php
34-
3533use EKvedaras\PHPEnum\PHPArray\Enum;
3634
3735class PaymentStatus extends Enum
@@ -278,8 +276,6 @@ Meta field is intentionally left as mixed type as it could be used for various r
278276For example linking enum options with a specific implementation:
279277
280278``` php
281- <?php
282-
283279use EKvedaras\PHPEnum\PHPArray\Enum;
284280
285281class PaymentMethod extends Enum
@@ -321,8 +317,6 @@ they will not be returned in `enum` / `keys` / `options`, etc. results and won't
321317to extend enums and make them more useful. For example:
322318
323319``` php
324- <?php
325-
326320use EKvedaras\PHPEnum\Illuminate\Collection\Enum;
327321use Illuminate\Support\Collection;
328322
@@ -375,8 +369,6 @@ Calling `serialize(PaymentMethod::stripe())` will throw a `RuntimeException`.
375369As a workaround it is better to store the ID instead of object itself. You still get the bonus of setters only accepting valid values.
376370
377371``` php
378- <?php
379-
380372class Payment
381373{
382374 /** @var string */
You can’t perform that action at this time.
0 commit comments