public function getVersion()
{
return $this->version;
}
public function testToArray() { $os = new OperatingSystem(); $this->assertEquals(['name' => null, 'version' => $os->getVersion()->toArray()], $os->toArray()); $os->setName('Linux'); $this->assertEquals(['name' => 'Linux', 'version' => $os->getVersion()->toArray()], $os->toArray()); }