Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1192 | daniel-mar | 1 | <?php |
2 | |||
3 | /* |
||
4 | * Copyright (C) 2008 Patrik Fimml |
||
5 | * Copyright (c) 2023 Daniel Marschall |
||
6 | * |
||
7 | * This file is part of glip. |
||
8 | * |
||
9 | * glip is free software: you can redistribute it and/or modify |
||
10 | * it under the terms of the GNU General Public License as published by |
||
11 | * the Free Software Foundation, either version 2 of the License, or |
||
12 | * (at your option) any later version. |
||
13 | |||
14 | * glip is distributed in the hope that it will be useful, |
||
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
17 | * GNU General Public License for more details. |
||
18 | * |
||
19 | * You should have received a copy of the GNU General Public License |
||
20 | * along with glip. If not, see <http://www.gnu.org/licenses/>. |
||
21 | */ |
||
22 | |||
23 | namespace ViaThinkSoft\Glip; |
||
24 | |||
25 | class GitBlob extends GitObject |
||
26 | { |
||
27 | /** |
||
28 | * @brief The data contained in this blob. |
||
29 | */ |
||
30 | public $data = null; |
||
31 | |||
32 | public function __construct($repo) { |
||
33 | parent::__construct($repo, Git::OBJ_BLOB); |
||
34 | } |
||
35 | |||
36 | public function _unserialize($data) { |
||
37 | $this->data = $data; |
||
38 | } |
||
39 | |||
40 | public function _serialize() { |
||
41 | return $this->data; |
||
42 | } |
||
43 | } |