Pointable::run()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
/**
3
 * Procura trampos
4
 */
5
6
namespace Gamer\Processing;
7
8
use Log;
9
use App\Models\User;
10
11
class Pointable
12
{
13
    protected $referenceComponent;
14
15
    public function __construct()
16
    {
17
        
18
    }
19
    
20
    public function setComponent($component)
21
    {
22
        $this->component = $component;
0 ignored issues
show
Bug introduced by
The property component does not seem to exist. Did you mean referenceComponent?

An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.

If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.

Loading history...
23
        return $this;
24
    }
25
    
26
    public function setReferenceComponent($referenceComponent)
27
    {
28
        $this->referenceComponent = $referenceComponent;
29
    }
30
31
    public function run()
32
    {
33
34
    }
35
    
36
    public function profileToProfile()
37
    {
38
        // Get Points from Profile Fa
39
40
    }
41
    
42
    public function postToProfile(Post $post, Profile $profile)
0 ignored issues
show
Unused Code introduced by
The parameter $profile 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...
43
    {
44
        return ($post->countLikes()*1)+($post->countComments()*3);
45
    }
46
47
}
48