Using getter/setter is the better coding style.. but if the attributes
are public you can access them directly, too.

On 29 Jan., 11:16, ruigoncalves <[email protected]> wrote:
> Hi there!
>
> How can I access the attributes of a class? By the name of the
> attribute or I have to use the appropriate getter/setter?
>
> Thanks in advance,
> Best regards!

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.

Reply via email to