PageRenderTime 28ms CodeModel.GetById 16ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

/php/bitbucket_external_repository_group_privilege.class.php

https://bitbucket.org/chamilo/chamilo-ext-repo-bitbucket-dev/
PHP | 102 lines | 64 code | 15 blank | 23 comment | 0 complexity | bdf6556b7b5ff253225e021ce6e47174 MD5 | raw file
  1<?php
  2namespace common\extensions\external_repository_manager\implementation\bitbucket;
  3
  4/**
  5 *
  6 * @author magali.gillard
  7 *
  8 */
  9class BitbucketExternalRepositoryGroupPrivilege
 10{
 11    private $group;
 12    private $name;
 13    private $privilege;
 14    private $repository;
 15    private $members;
 16    private $owner;
 17
 18    function get_group()
 19    {
 20        return $this->group;
 21    }
 22
 23    function set_group($group)
 24    {
 25        $this->group = $group;
 26    }
 27
 28    function get_privilege()
 29    {
 30        return $this->privilege;
 31    }
 32
 33    function set_privilege($privilege)
 34    {
 35        $this->privilege = $privilege;
 36    }
 37
 38    function get_repository()
 39    {
 40        return $this->repository;
 41    }
 42
 43    function set_repository($repository)
 44    {
 45        $this->repository = $repository;
 46    }
 47
 48    /**
 49     * @return the $members
 50     */
 51    public function get_members()
 52    {
 53        return $this->members;
 54    }
 55
 56    /**
 57     * @param $members the $members to set
 58     */
 59    public function set_members($members)
 60    {
 61        $this->members = $members;
 62    }
 63
 64    /**
 65     * @return the $name
 66     */
 67    public function get_name()
 68    {
 69        return $this->name;
 70    }
 71
 72    /**
 73     * @param $name the $name to set
 74     */
 75    public function set_name($name)
 76    {
 77        $this->name = $name;
 78    }
 79
 80    /**
 81     * @return the $owner
 82     */
 83    public function get_owner()
 84    {
 85        return $this->owner;
 86    }
 87
 88    /**
 89     * @param $owner the $owner to set
 90     */
 91    public function set_owner($owner)
 92    {
 93        $this->owner = $owner;
 94    }
 95
 96    public function get_owner_username()
 97    {
 98        return $this->get_owner()->username;
 99    }
100
101}
102?>