AppletJoint   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
c 1
b 0
f 0
dl 0
loc 27
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A go() 0 1 1
1
<?php 
2
3
namespace Epesi\Base\Dashboard\Integration\Joints;
4
5
use Epesi\Core\System\Modules\ModuleJoint;
0 ignored issues
show
Bug introduced by
The type Epesi\Core\System\Modules\ModuleJoint was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
use Epesi\Base\Dashboard\View\Applet;
7
use Epesi\Core\System\Modules\Concerns\HasOptions;
0 ignored issues
show
Bug introduced by
The type Epesi\Core\System\Modules\Concerns\HasOptions was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
8
9
abstract class AppletJoint extends ModuleJoint
10
{
11
	use HasOptions;
12
	
13
	/**
14
	 * Caption to display on the applet
15
	 */
16
	abstract public function caption();
17
	
18
	/**
19
	 * Description of the applet purpose
20
	 */
21
	abstract public function info();
22
	
23
	/**
24
	 * Define the full screen link
25
	 */
26
	public function go() {}
27
	
28
	/**
29
	 * Define the applet body
30
	 * 
31
	 * Use the $applet parameter to 
32
	 * 		- add content to the applet $applet->add(['View']);, etc
33
	 * 		- add actions $applet->addAction('save')->link('some/link');
34
	 */
35
	abstract public function body(Applet $applet, $options = []);
36
}