Password   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 1
cbo 1
dl 0
loc 19
ccs 0
cts 4
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A render() 0 4 1
1
<?php
2
3
  namespace Fiv\Form\Element;
4
5
  /**
6
   * @author Ivan Shcherbak <[email protected]>
7
   */
8
  class Password extends Input {
9
10
    /**
11
     * @var array
12
     */
13
    protected $attributes = [
14
      'type' => 'password',
15
    ];
16
17
18
    /**
19
     * @return string
20
     */
21
    public function render() {
22
      $this->attributes['value'] = null;
23
      return parent::render();
24
    }
25
26
  }