Re: Type hinting
| From: | Christian Kaps | Date: | Thu, 17 Jun 2010 19:24:14 +0000 |
| Subject: | Re: Type hinting | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-48822@lists.php.net to get a copy of this message | ||
Am 17.06.2010 21:14, schrieb Stas Malyshev:
> Hi!
>
>> I know the discussion is about scalar type hints. But what is with a
>> object type hint as base for all objects?
>
> When it makes sense to accept any object, regardless of the class, but
> not other types? I wonder if it's really a common use-case.
My view layer accepts only presentation model objects. So every object
with public properties can be passed to the the view.