Has strategy is useful to check against wildcard.

Envoyé de mon iPhone

> Le 17 mai 2014 à 17:42, Marco Pivetta <notifications@github.com> a écrit :
> 
> In src/Hydrator/AbstractHydrator.php:
> 
> > +    public function getStrategy($name)
> > +    {
> > +        if (isset($this->strategies[$name])) {
> > +            return $this->strategies[$name];
> > +        }
> > +
> > +        return isset($this->strategies['*']) ? $this->strategies['*'] : null;
> > +    }
> > +
> > +    /**
> > +     * Has a given property a strategy attached to it?
> > +     *
> > +     * @param  string $name
> > +     * @return bool True if the given property has a strategy
> > +     */
> > +    public function hasStrategy($name)
> There's a lot of public API in the hydrator that should really go away...
> 
> —
> Reply to this email directly or view it on GitHub.