PageRenderTime 9ms CodeModel.GetById 1ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/php/bitbucket_external_repository_changeset.class.php

https://bitbucket.org/chamilo/chamilo-ext-repo-bitbucket-dev/
PHP | 94 lines | 73 code | 16 blank | 5 comment | 0 complexity | a5162da7621b82165864171d6c750a64 MD5 | raw file
 1<?php
 2namespace common\extensions\external_repository_manager\implementation\bitbucket;
 3
 4/**
 5 *
 6 * @author magali.gillard
 7 *
 8 */
 9class BitbucketExternalRepositoryChangeset
10{
11    private $author;
12    private $time;
13    private $message;
14    private $branch;
15    private $revision;
16    private $id;
17    private $repository;
18
19    function get_author()
20    {
21        return $this->author;
22    }
23
24    function set_author($author)
25    {
26        $this->author = $author;
27    }
28
29    function get_time()
30    {
31        return $this->time;
32    }
33
34    function set_time($time)
35    {
36        $this->time = $time;
37    }
38
39    function get_message()
40    {
41        return $this->message;
42    }
43
44    function set_message($message)
45    {
46        $this->message = $message;
47    }
48
49    function get_branch()
50    {
51        return $this->branch;
52    }
53
54    function set_branch($branch)
55    {
56        $this->branch = $branch;
57    }
58
59    function get_revision()
60    {
61        return $this->revision;
62    }
63
64    function set_revision($revision)
65    {
66        $this->revision = $revision;
67    }
68
69    function get_repository()
70    {
71        return $this->repository;
72    }
73
74    function set_repository($repository)
75    {
76        $this->repository = $repository;
77    }
78
79    function get_id()
80    {
81        return $this->id;
82    }
83
84    function set_id($id)
85    {
86        $this->id = $id;
87    }
88
89    function get_download_link()
90    {
91        return sprintf(BitbucketExternalRepositoryManagerConnector :: BASIC_DOWNLOAD_URL, $this->repository, $this->id);
92    }
93}
94?>