Why doe DirectoryIterator extends SplFileInfo?
| From: | Christoph M. Becker | Date: | Thu, 21 Sep 2017 16:53:31 +0000 |
| Subject: | Why doe DirectoryIterator extends SplFileInfo? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-326225@lists.php.net to get a copy of this message | ||
Hi everybody!
I wonder why DirectoryIterator extends SplFileInfo, instead of just
returning SplFileInfo instances from ::current(). I can't find a good
reason for this design decision, so I wanted to ask whether somebody
else can explain it.
--
Christoph M. Becker