Completed
Push — master ( 3a3759...49115f )
by Jakub
17:00
created

LinkRenderUrl   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 9
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A isApplicable() 0 3 1
A renderLink() 0 3 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Nexendrie\Menu;
5
6
use Nette\Utils\Validators;
7
8
/**
9
 * LinkRendererUrl
10
 *
11
 * @author Jakub Konečný
12
 */
13 1
final class LinkRenderUrl extends BaseLinkRender {
14
  public function isApplicable(string $link): bool {
15 1
    return Validators::isUrl($link);
16
  }
17
  
18
  public function renderLink(string $link): string {
19 1
    return $link;
20
  }
21
}
22
?>