Passed
Push — master ( 0c6014...93ee71 )
by Aimeos
08:11 queued 05:31
created

Laravel::getTable()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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
 * Laravel customer property manager implementation.
16
 *
17
 * @package MShop
18
 * @subpackage Customer
19
 */
20
class Laravel
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 ?: 'Laravel' );
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 'users_property';
45
	}
46
}
47