Writer::write()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 1
ccs 0
cts 0
cp 0
nc 1
1
<?php
2
3
/*
4
 * This file is part of Payload.
5
 *
6
 * (c) DraperStudio <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace DraperStudio\Payload\Writers;
13
14
use DraperStudio\Payload\Utils\File;
15
16
/**
17
 * Class Writer.
18
 */
19
abstract class Writer
20
{
21
    /**
22
     * @param $path
23
     * @param $input
24
     *
25
     * @return mixed
26
     */
27
    abstract public function write($path, $input);
28
29
    /**
30
     * @param $path
31
     * @param $contents
32
     *
33
     * @return bool
34
     */
35 24
    public function put($path, $contents)
36
    {
37 24
        return File::put($path, $contents);
38
    }
39
}
40