Skip to content

I want to separate responsibility of Cast from Entity. #1287

Description

@ytetsuro

The current Entity class has the responsibility of Cast.
But, I would like to separate the responsibilities of Cast from Entity.
That is because Cast is highly likely to be used in various places and Entity and responsibility range are different.

The improvement approach is done in the following procedure.

  1. Create a Caster class.
  2. Implement casting of Entity class in Caster class.
  3. Make the Entity class depend on the Caster class.
  4. Delete cast process of Entity class.

Does CodeIgniter want such a PR?

https://github.com/bcit-ci/CodeIgniter4/blob/b840d0a6d307df4da956561b599e443e467195d6/system/Entity.php

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions