diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-08-04 17:50:34 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-08-04 17:50:34 +0200 |
commit | 46b77928f746a4231d064774b5b67fd892c7ce86 (patch) | |
tree | e3ea690b3f0def1744ddae758923cf92171ef985 /vendor/symfony/form/Symfony/Component/Form/Guess/TypeGuess.php | |
parent | 68abd9c71b1d2f7bb2e9d21819584d1d15005b25 (diff) | |
download | wallabag-46b77928f746a4231d064774b5b67fd892c7ce86.tar.gz wallabag-46b77928f746a4231d064774b5b67fd892c7ce86.tar.zst wallabag-46b77928f746a4231d064774b5b67fd892c7ce86.zip |
rm vendor
Diffstat (limited to 'vendor/symfony/form/Symfony/Component/Form/Guess/TypeGuess.php')
-rw-r--r-- | vendor/symfony/form/Symfony/Component/Form/Guess/TypeGuess.php | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/vendor/symfony/form/Symfony/Component/Form/Guess/TypeGuess.php b/vendor/symfony/form/Symfony/Component/Form/Guess/TypeGuess.php deleted file mode 100644 index 3241e603..00000000 --- a/vendor/symfony/form/Symfony/Component/Form/Guess/TypeGuess.php +++ /dev/null | |||
@@ -1,70 +0,0 @@ | |||
1 | <?php | ||
2 | |||
3 | /* | ||
4 | * This file is part of the Symfony package. | ||
5 | * | ||
6 | * (c) Fabien Potencier <fabien@symfony.com> | ||
7 | * | ||
8 | * For the full copyright and license information, please view the LICENSE | ||
9 | * file that was distributed with this source code. | ||
10 | */ | ||
11 | |||
12 | namespace Symfony\Component\Form\Guess; | ||
13 | |||
14 | /** | ||
15 | * Contains a guessed class name and a list of options for creating an instance | ||
16 | * of that class | ||
17 | * | ||
18 | * @author Bernhard Schussek <bschussek@gmail.com> | ||
19 | */ | ||
20 | class TypeGuess extends Guess | ||
21 | { | ||
22 | /** | ||
23 | * The guessed field type | ||
24 | * @var string | ||
25 | */ | ||
26 | private $type; | ||
27 | |||
28 | /** | ||
29 | * The guessed options for creating an instance of the guessed class | ||
30 | * @var array | ||
31 | */ | ||
32 | private $options; | ||
33 | |||
34 | /** | ||
35 | * Constructor | ||
36 | * | ||
37 | * @param string $type The guessed field type | ||
38 | * @param array $options The options for creating instances of the | ||
39 | * guessed class | ||
40 | * @param integer $confidence The confidence that the guessed class name | ||
41 | * is correct | ||
42 | */ | ||
43 | public function __construct($type, array $options, $confidence) | ||
44 | { | ||
45 | parent::__construct($confidence); | ||
46 | |||
47 | $this->type = $type; | ||
48 | $this->options = $options; | ||
49 | } | ||
50 | |||
51 | /** | ||
52 | * Returns the guessed field type | ||
53 | * | ||
54 | * @return string | ||
55 | */ | ||
56 | public function getType() | ||
57 | { | ||
58 | return $this->type; | ||
59 | } | ||
60 | |||
61 | /** | ||
62 | * Returns the guessed options for creating instances of the guessed type | ||
63 | * | ||
64 | * @return array | ||
65 | */ | ||
66 | public function getOptions() | ||
67 | { | ||
68 | return $this->options; | ||
69 | } | ||
70 | } | ||