Re: Class Properties in Interfaces?

From: Date: Wed, 30 Apr 2008 21:06:45 +0000
Subject: Re: Class Properties in Interfaces?
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-37390@lists.php.net to get a copy of this message
Hi!
In Child $foo is redefined without a getter-method. This breaks the
How it's not "in Child the get method is inherited from Mother"? But suppose it is as you say. Yes, in this particular case it would be detected - however, it is not the code you brought in the last example, where the actual code - not method presence - was changed. Summarily, LSP can not be *enforced* by language means. The language can only give support for some limited subset of cases. PHP's get/set handlers allow you to do the same as your property syntax and more, albeit with different syntax. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#37390) next »