public function hashToArgsArray($hashOfOptions)
    {
        $optionsArray = new \SplFixedArray(count($hashOfOptions));

        foreach ($this->constructorArgs as $name => $param) {
            $optionsArray[$param->getPosition()] = $hashOfOptions[$name];
        }

        return $optionsArray->toArray();
    }