Skip to content

Domain Kata 1.4.0 (stable)

Latest
Compare
Choose a tag to compare
@iteman iteman released this 13 Jun 02:23
· 2 commits to master since this release
v1.4.0

Release Date: 2015-06-13 UTC

What's New in Domain Kata 1.4.0

InOutInterface

(Issue #12)

InOutInterface is an abstraction of Input/Output. And also, it can be used as the argument of UsecaseInterface::run().

InOutInterface:

namespace PHPMentors\DomainKata\InOut;
...
interface InOutInterface extends EntityInterface
{
    /**
     * @param mixed $input
     */
    public function setInput($input);

    /**
     * @return mixed
     */
    public function getInput();

    /**
     * @param mixed $output
     */
    public function setOutput($output);

    /**
     * @return mixed
     */
    public function getOutput();
}

ServiceInterface

(Issue #8)

ServiceInterface is a marker interface for services which is described in the Domain-Driven Design book except use case identified by our UsecaseInterface.

IdentifiableInterface

(Issue #10)

IdentifiableInterface is an interface to get the identifier of the object which is mostly an EntityInterface object.

EntityCollectionInterface::toArray()

(Issue #11)

The toArray() method has been added to EntityCollectionInterface to get a native PHP array representation of the collection.