Re: RFC: Traits for PHP

From: Date: Fri, 22 Feb 2008 17:20:37 +0000
Subject: Re: RFC: Traits for PHP
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14  Groups: php.internals 
Request: Send a blank email to internals+get-35736@lists.php.net to get a copy of this message
Hi!
A trait may contain methods and properties. When importing a trait into a class, all methods and properties are imported in a way that makes them only visible within the trait (I dont like the use of "private"
How you are going to do that?
here .. its what confused me in the first proposals of this approach by Marcus/Andi). The user of the trait can however explicitly make properties and methods from the trait visible to the class importing the
Looks like composition/delegation to me. Maybe that's what it should be? -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#35736) next »