RE: [PHP-DEV] Class Properties in Interfaces?
| From: | johncart - PolicyApp Ltd at Cisco) | Date: | Tue, 29 Apr 2008 18:04:30 +0000 |
| Subject: | RE: [PHP-DEV] Class Properties in Interfaces? | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-37313@lists.php.net to get a copy of this message | ||
I think there's been two responses to this query:
1. We can't have properties in interfaces because interfaces don't have
properties. I would say this is tautological and doesn't add anything.
2. Why would you need to? Getters and setters work.
So I suppose to answer my question for myself, there's no real technical
reason for not having properties in interfaces, but getters and setters
work just fine and no-one (including me) really misses them.
John.