4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Form\Guess
;
15 * Contains a guessed class name and a list of options for creating an instance
18 * @author Bernhard Schussek <bschussek@gmail.com>
20 class TypeGuess
extends Guess
23 * The guessed field type
29 * The guessed options for creating an instance of the guessed class
37 * @param string $type The guessed field type
38 * @param array $options The options for creating instances of the
40 * @param integer $confidence The confidence that the guessed class name
43 public function __construct($type, array $options, $confidence)
45 parent
::__construct($confidence);
48 $this->options
= $options;
52 * Returns the guessed field type
56 public function getType()
62 * Returns the guessed options for creating instances of the guessed type
66 public function getOptions()
68 return $this->options
;