title: PHP: immutable public member fields
body: <p>I need to create an immutable class which is simply a member field container. I want its fields to be instantiated once in its constructor (the values should be given as parameters to the constructor). I want the fields to be public but immutable. I could have done it with Java using the <code>final</code> keyword before each field. How is it done in PHP?</p>