Skip to content

Conversation

antonkomarev
Copy link
Collaborator

@antonkomarev antonkomarev commented Dec 21, 2019

To avoid violation of Interface Segregation Principles we may extract following interfaces:

  • Nullable
  • Countable
  • Weightable

There are many ways to design package namespace.

  1. Keep these interfaces inside of the I\Love namespace
  2. Bundle interfaces in helper package like I\Support, I\Entity, etc.
  3. Create separate package for each of them:
  • I\Nullable
  • I\Countable
  • I\Weightable
  1. Mix two previous points and create bundle package with split sub-packages:
  • I\Object\Nullable
  • I\Object\Countable
  • I\Object\Weightable

@antonkomarev antonkomarev added the enhancement New feature or request label Dec 21, 2019
@antonkomarev
Copy link
Collaborator Author

antonkomarev commented Dec 21, 2019

Do we need to extract isEqualTo(self $that) & isNotEqualTo(self $that) methods from Reactant, Reacter & ReacterType models to Equalable interface?

Possible package candidate: https://github.com/php-i/comparison

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant