Re: __constructor parameter limitations.

From: Date: Mon, 19 Sep 2011 09:17:52 +0000
Subject: Re: __constructor parameter limitations.
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14  Groups: php.internals 
Request: Send a blank email to internals+get-55526@lists.php.net to get a copy of this message
Hi, 2011/9/19 Frédéric Hardy <frederic.hardy@mageekbox.net> > Hi ! > > What is the utility of abstract method if implementation can not follow > the signature (constraints ?) of the abstract method ? > In this case, abstract methods are totaly useless ! > Moreover, i think that it's not compatible with Liskov substitution > principle. Subclasses can loosen the preconditions, that's eactly what happens here and it is perfectly fine in theory. > > > Best regards, > Fred > -- > > ==============================**==============================** > ============ > Frédéric Hardy : Architecte d'application/Admin. système/Ergonome > CV : > http://blog.mageekbox.net/**public/cv.frederic.hardy.pdf<http://blog.mageekbox.net/public/cv.frederic.hardy.pdf> > Blog : http://blog.mageekbox.net > Twitter : http://twitter.com/mageekguy > ==============================**==============================** > ============ > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Etienne Kneuss http://www.colder.ch

« previous php.internals (#55526) next »