Hi!

>         get() { return $this->Hours; }
>         final set NULL;

It looks like some unobvious piece of magic - what exactly "set NULL"
means? There's no obvious parsing of this thing for somebody that
doesn't already know what the magic means. I'd rather have people
implement a method throwing exception manually than have this. It's
unclear what is relationship between "set" (is it a variable? a
constant? a method?) and "NULL" (what NULL here means? is it assignment
of NULL to set? is it declaration of NULL with type "set"?) and it does
not parse naturally with almost any background.

Thinking about it for a while, the whole idea of "this class can never
have this method implemented" looks a bit strange to me - I don't think
I've ever encountered such concept in OOP. You can say "I implement it
this way and you can't override it" but NULL does not suggest any
natural implementation.

-- 
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to