algorithm = $algorithm; $this->oid = $oid; } /** * @param $name * * @return string|void */ public function __get($name) { switch ($name) { case 'algorithm': case 'oid': return $this->{$name}; } } }