Passed
Push — master ( 4353de...fd9b87 )
by Aimeos
17:01 queued 14:25
created

Laravel   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

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

2 Methods

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