Completed
Push — master ( ab4944...534e9c )
by Andrew
02:30
created

ClassyImage   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 17
rs 10
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
1
<?php 
2
3
class ClassyImage extends ClassyBasis {
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
4
5
	/**
6
	 * Current image id
7
	 * @var int
8
	 */
9
	public $id;
10
11
	
12
	/**
13
	 * Main constructor function. Requires image id
14
	 * @param int $pid
15
	 */
16
	public function __construct($pid = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $pid is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
17
	}
18
19
}