7ea8259d93c3219da2c9ecc6198f09b8ef6dd6f0
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Classes / Property / TypeConverter / StringConverter.php
1 <?php
2 namespace TYPO3\CMS\Extbase\Property\TypeConverter;
3
4 /* *
5 * This script belongs to the Extbase framework *
6 * *
7 * It is free software; you can redistribute it and/or modify it under *
8 * the terms of the GNU Lesser General Public License as published by the *
9 * Free Software Foundation, either version 3 of the License, or (at your *
10 * option) any later version. *
11 * *
12 * This script is distributed in the hope that it will be useful, but *
13 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- *
14 * TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser *
15 * General Public License for more details. *
16 * *
17 * You should have received a copy of the GNU Lesser General Public *
18 * License along with the script. *
19 * If not, see http://www.gnu.org/licenses/lgpl.html *
20 * *
21 * The TYPO3 project - inspiring people to share! *
22 * */
23 /**
24 * Converter which transforms simple types to a string.
25 *
26 * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later
27 * @api
28 */
29 class StringConverter extends \TYPO3\CMS\Extbase\Property\TypeConverter\AbstractTypeConverter implements \TYPO3\CMS\Core\SingletonInterface {
30
31 /**
32 * @var array<string>
33 */
34 protected $sourceTypes = array('string');
35
36 /**
37 * @var string
38 */
39 protected $targetType = 'string';
40
41 /**
42 * @var integer
43 */
44 protected $priority = 1;
45
46 /**
47 * Actually convert from $source to $targetType, taking into account the fully
48 * built $convertedChildProperties and $configuration.
49 *
50 * @param string $source
51 * @param string $targetType
52 * @param array $convertedChildProperties
53 * @param \TYPO3\CMS\Extbase\Property\PropertyMappingConfigurationInterface $configuration
54 * @return string
55 * @api
56 */
57 public function convertFrom($source, $targetType, array $convertedChildProperties = array(), \TYPO3\CMS\Extbase\Property\PropertyMappingConfigurationInterface $configuration = NULL) {
58 return $source;
59 }
60 }
61
62 ?>