note 118153 added to language.oop5.interfaces

From: Date: Thu, 15 Oct 2015 19:57:54 +0000
Subject: note 118153 added to language.oop5.interfaces
Groups: php.notes 
Request: Send a blank email to php-notes+get-203961@lists.php.net to get a copy of this message
<?php interface ClassThatCanBuild { } interface SpecificClass extends \ClassThatCanBuild { } Class MySpecificClass implements \SpecificClass { } interface BuilderInterface { function build(\ClassThatCanBuild $container); function weCanHaveMethods(); } interface SpecificBuilderInterface extends \BuilderInterface { /** * (!!) this class want to allow just for build * specific classes. * i`m still on the rule with MySpecificClass * because extend from ClassThatCanBuild * but php don`t allow it at all * * "" declaration of must be compatible with * interface of BuilderInterface->build "" * * @param \MySpecificClass $container */ function build(\MySpecificClass $container); } ?> ---- Server IP: 72.52.91.14 Probable Submitter: 5.116.219.24 ---- Manual Page -- http://php.net/manual/en/language.oop5.interfaces.php Edit -- https://master.php.net/note/edit/118153 Del: integrated -- https://master.php.net/note/delete/118153/integrated Del: useless -- https://master.php.net/note/delete/118153/useless Del: bad code -- https://master.php.net/note/delete/118153/bad+code Del: spam -- https://master.php.net/note/delete/118153/spam Del: non-english -- https://master.php.net/note/delete/118153/non-english Del: in docs -- https://master.php.net/note/delete/118153/in+docs Del: other reasons-- https://master.php.net/note/delete/118153 Reject -- https://master.php.net/note/reject/118153 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#203961) next »