File tree Expand file tree Collapse file tree
user_guide_src/source/models Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -433,7 +433,7 @@ Let's say the class will be located in the 'app/Entity/Cast' directory::
433433
434434 use CodeIgniter\Entity\Cast\BaseCast;
435435
436- //The class must inherit the CodeIgniter\Entity\Cast\BaseCast class
436+ // The class must inherit the CodeIgniter\Entity\Cast\BaseCast class
437437 class CastBase64 extends BaseCast
438438 {
439439 public static function get($value, array $params = [])
@@ -462,13 +462,13 @@ Now you need to register it::
462462 'key' => 'base64',
463463 ];
464464
465- //Bind the type to the handler
465+ // Bind the type to the handler
466466 protected $castHandlers = [
467467 'base64' => \App\Entity\Cast\CastBase64::class,
468468 ];
469469 }
470470
471- //...
471+ // ...
472472
473473 $entity->key = 'test'; // dGVzdA==
474474 echo $entity->key; // test
You can’t perform that action at this time.
0 commit comments