That's stupid. I don't want to do that. Definitely.

Envoyé de mon iPhone

> Le 17 mai 2014 à 19:28, Marco Pivetta <notifications@github.com> a écrit :
> 
> In src/Hydrator/Filter/CompositeFilter.php:
> 
> > +     * Get the type of the composite filter (CONDITION_OR or CONDITION_AND)
> > +     *
> > +     * @return int
> > +     */
> > +    public function getType()
> > +    {
> > +        return $this->type;
> > +    }
> > +
> > +    /**
> > +     * Add a new filter to the composite filter
> > +     *
> > +     * @param  FilterInterface $filter
> > +     * @return void
> > +     */
> > +    public function addFilter(FilterInterface $filter)
> You'd just wrap it:
> 
> class MyHydrator implements HydratorInterface
> {
>     public function __construct()
>     {
>         $this->wrapped = new ClassMethods();
>         $this->wrapped->addStrategy('whatever', new SomeStrategy);
>     }
>     public function hydrate(array $data, $object)
>     {
>         return $this->wrapped->hydrate($data, $object);
>     }
> 
>     public function extract($object)
>     {
>         return $this->wrapped->extract($object);
>     }
> }
> —
> Reply to this email directly or view it on GitHub.