I am trying to figure out how best to complete my classes.
my situation.
I have an abstract order class that contains the methods and order information that are needed for two child classes
order_Outbound
and order_inbound
each child class needs 2 static public methods called create and get
but from what i read about php 5.3 you have no abstract static methods.
so I thought that I should have an Order_Interface interface that takes on this role, but how do I implement it. I am still implementing it in the parent class
and in this case, the parent abstract class still requires me to create a get and create method in the abstract class. or am I implementing it in children and expanding from an abstract class ???
ALSO!!! both outgoing and incoming children require the creation of a static method, but require the transfer of different parameters
can i in the interface the public static function create ()
and in its implementation in order_outbound declares a public static function create ($ address, $ reference, $ orderID)
source share