hurricane/driver-php — Issue #3: Erlang\DataType's do not respect Open Close principle.
Author: breerly
Created: 2012-02-28 01:25:10+00:00
State: open

Models should be open for extension but closed for modification. Specifically, this means accessing properties on these data types through getters. This will aid in unit testing them as well because objects should have their public API tested; testing public properties is bad practice.

```php
name;
}
public function setName($name)
{
$this->name = (string) $name;
}
}

class ModelTest
{
public function testNameShouldBeBob()
{
$name = 'bob';
$subject = new Model();
$subject->setName($name);
$this->assertEqual($name, $subject->getName());
}
}
```