2012-05-05 20:06:53 +02:00
|
|
|
<?php
|
|
|
|
class GitObject
|
|
|
|
{
|
|
|
|
public $rawdata = "";
|
|
|
|
public $size = 0;
|
2012-05-05 20:21:21 +02:00
|
|
|
public $repo = null;
|
2012-05-06 01:55:54 +02:00
|
|
|
public $sha = "";
|
2012-05-05 20:06:53 +02:00
|
|
|
|
2012-05-06 01:55:54 +02:00
|
|
|
function __construct($repo, $headerdata, $data, $sha)
|
2012-05-05 20:06:53 +02:00
|
|
|
{
|
2012-05-05 20:21:21 +02:00
|
|
|
$this->repo = $repo;
|
2012-05-05 20:06:53 +02:00
|
|
|
$this->size = (int)$headerdata;
|
|
|
|
$this->rawdata = $data;
|
2012-05-06 01:55:54 +02:00
|
|
|
$this->sha = $sha;
|
2012-05-05 20:06:53 +02:00
|
|
|
}
|
|
|
|
}
|