Completed
Push — master ( 42ea31...2719b0 )
by recca
02:01
created

AbstractSubscriablePanel   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 20
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setLaravel() 0 6 1
subscribe() 0 1 ?
1
<?php
2
3
namespace Recca0120\LaravelTracy\Panels;
4
5
use Tracy\Helpers;
6
use Tracy\IBarPanel;
7
use Recca0120\LaravelTracy\Template;
8
use Illuminate\Contracts\Foundation\Application;
9
10
abstract class AbstractSubscriablePanel extends AbstractPanel implements ISubscriablePanel
11
{
12
    /**
13
     * setLaravel.
14
     *
15
     * @param \Illuminate\Contracts\Foundation\Application $laravel
16
     * @return static
17
     */
18
    public function setLaravel(Application $laravel = null)
19
    {
20
        parent::setLaravel($laravel)->subscribe();
21
22
        return $this;
23
    }
24
25
    /**
26
     * subscribe.
27
     */
28
    abstract protected function subscribe();
29
}
30