Code: Select all
/lib
/Reader
Abstract.php
File.php
DirectInput.php
Url.php
So anyway, does my question make sense? If it doesn't I'll try to explain it better. Any help is appreciated.
Moderator: General Moderators
Code: Select all
/lib
/Reader
Abstract.php
File.php
DirectInput.php
Url.php
That wouldn't work anyway, as 'abstract' is a keyword. 'abstract class Abstract' is a syntax error.Do you have a class named MyLibrary\Reader\Abstract? For some reason that just seems weird to me.
Code: Select all
/lib
/MyLibrary
/Reader
StringReader.php
FileReader.php
Reader.php (abstract)
OtherClass.php
Foo.php
Yes. Use Base or AbstractReader depending on the context and you preference.Weirdan wrote:That wouldn't work anyway, as 'abstract' is a keyword. 'abstract class Abstract' is a syntax error.
Yeah, 2011 ... I am sooo tempted to wake up this thread ...Christopher wrote:Ahhhhh ... 2011 and the Inheritance vs Composition discussions! I couldn't read more than a few pages ... but I am sure that Jenk was right!