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

Laravel   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 25
rs 10
wmc 3

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getSubManager() 0 3 2
A getTable() 0 3 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
 * 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