NYCPHP Meetup

NYPHP.org

[nycphp-talk] Constants interfaces

Kenneth Dombrowski kenneth at ylayali.net
Wed Sep 3 14:20:28 EDT 2008


Hi Michael, 

Well, if it works for you, go for it.  I think it's a bit weird and
extremely unintuitive to inherit from an interface, and I wouldn't have
expected it was even permitted, but it turns out it's even documented
(apparantly it only works for constants):

http://www.php.net/manual/en/language.oop5.interfaces.php

I don't have a problem with multiple inheritence, it just seems very
kludgey to me to implement it with interfaces; I guesss PHP gives you
little choice though.. 

Kenneth 




More information about the talk mailing list