GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( aeea7b...8caa53 )
by Hong
02:18
created

WritableTrait::set()

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 1
nc 1
1
<?php
2
/**
3
 * Phossa Project
4
 *
5
 * PHP version 5.4
6
 *
7
 * @category  Library
8
 * @package   Phossa2\Config
9
 * @copyright Copyright (c) 2016 phossa.com
10
 * @license   http://mit-license.org/ MIT License
11
 * @link      http://www.phossa.com/
12
 */
13
/*# declare(strict_types=1); */
14
15
namespace Phossa2\Config\Traits;
16
17
use Phossa2\Config\Interfaces\WritableInterface;
18
19
/**
20
 * Implementation of WritableInterface
21
 *
22
 * @package Phossa2\Config
23
 * @author  Hong Zhang <[email protected]>
24
 * @see     WritableInterface
25
 * @version 2.0.0
26
 * @since   2.0.0 added
27
 */
28
trait WritableTrait
29
{
30
    /**
31
     * @var    false|mixed
32
     * @access protected
33
     */
34
    protected $writable = false;
35
36
    /**
37
     * {@inheritDoc}
38
     */
39
    public function isWritable()/*# : bool */
40
    {
41
        return false !== $this->writable;
42
    }
43
44
    /**
45
     * {@inheritDoc}
46
     */
47
    public function setWritable($writable)
48
    {
49
        $this->writable = $writable;
50
        return $this;
51
    }
52
53
    // from WritableInterface
54
    abstract public function set(/*# string */ $key, $value);
55
}
56