public function toArray() { $data = array('typ' => $this->getType(), 'alg' => $this->getAlgorithm()); return $data; }