Passed
Push — master ( cb6573...bf801c )
by Aimeos
09:58 queued 07:33
created

Typo3::clear()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 4
c 0
b 0
f 0
dl 0
loc 8
rs 10
cc 2
nc 2
nop 1
1
<?php
2
3
/**
4
 * @license LGPLv3, http://opensource.org/licenses/LGPL-3.0
5
 * @copyright Aimeos (aimeos.org), 2018-2024
6
 * @package MShop
7
 * @subpackage Customer
8
 */
9
10
11
namespace Aimeos\MShop\Customer\Manager\Property;
12
13
14
/**
15
 * TYPO3 customer property manager implementation.
16
 *
17
 * @package MShop
18
 * @subpackage Customer
19
 */
20
class Typo3
21
	extends \Aimeos\MShop\Customer\Manager\Property\Standard
22
	implements \Aimeos\MShop\Customer\Manager\Property\Iface
23
{
24
	/**
25
	 * Returns a new manager for customer extensions
26
	 *
27
	 * @param string $manager Name of the sub manager type in lower case
28
	 * @param string|null $name Name of the implementation, will be from configuration (or Default) if null
29
	 * @return mixed Manager for different extensions, e.g stock, tags, locations, etc.
30
	 */
31
	public function getSubManager( string $manager, string $name = null ) : \Aimeos\MShop\Common\Manager\Iface
32
	{
33
		return parent::getSubManager( $manager, $name ?: 'Typo3' );
34
	}
35
36
37
	/**
38
	 * Returns the name of the used table
39
	 *
40
	 * @return string Table name
41
	 */
42
	protected function getTable() : string
43
	{
44
		return 'fe_users_property';
45
	}
46
}
47