<?php
/**
 * GroupToolFlags
 *
 * PHP version 5
 *
 * @category Class
 * @package  OSDN
 * @author   http://github.com/swagger-api/swagger-codegen
 * @license  http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
 * @link     https://github.com/swagger-api/swagger-codegen
 */

/**
 * OSDN REST API v0 beta
 *
 * OSDN REST API. Currently this API is experimental release. Pelase refer documentation on https://osdn.net/projects/osdn-codes/wiki/APIGuide and you can get client libraries from https://osdn.net/projects/osdn-codes/releases/p14859 .
 *
 * OpenAPI spec version: 0.0.20171120
 * Contact: admin@osdn.net
 * Generated by: https://github.com/swagger-api/swagger-codegen.git
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/**
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen
 * Do not edit the class manually.
 */

namespace OSDN\Model;

use \ArrayAccess;

/**
 * GroupToolFlags Class Doc Comment
 *
 * @category    Class */
/** 
 * @package     OSDN
 * @author      http://github.com/swagger-api/swagger-codegen
 * @license     http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
 * @link        https://github.com/swagger-api/swagger-codegen
 */
class GroupToolFlags implements ArrayAccess
{
    /**
      * The original name of the model.
      * @var string
      */
    protected static $swaggerModelName = 'GroupToolFlags';

    /**
      * Array of property to type mappings. Used for (de)serialization
      * @var string[]
      */
    protected static $swaggerTypes = array(
        'git' => 'bool',
        'svn' => 'bool',
        'hg' => 'bool',
        'bzr' => 'bool',
        'frs' => 'bool',
        'tikcet' => 'bool',
        'wiki' => 'bool',
        'forum' => 'bool',
        'ml' => 'bool'
    );

    public static function swaggerTypes()
    {
        return self::$swaggerTypes;
    }

    /**
     * Array of attributes where the key is the local name, and the value is the original name
     * @var string[]
     */
    protected static $attributeMap = array(
        'git' => 'git',
        'svn' => 'svn',
        'hg' => 'hg',
        'bzr' => 'bzr',
        'frs' => 'frs',
        'tikcet' => 'tikcet',
        'wiki' => 'wiki',
        'forum' => 'forum',
        'ml' => 'ml'
    );

    public static function attributeMap()
    {
        return self::$attributeMap;
    }

    /**
     * Array of attributes to setter functions (for deserialization of responses)
     * @var string[]
     */
    protected static $setters = array(
        'git' => 'setGit',
        'svn' => 'setSvn',
        'hg' => 'setHg',
        'bzr' => 'setBzr',
        'frs' => 'setFrs',
        'tikcet' => 'setTikcet',
        'wiki' => 'setWiki',
        'forum' => 'setForum',
        'ml' => 'setMl'
    );

    public static function setters()
    {
        return self::$setters;
    }

    /**
     * Array of attributes to getter functions (for serialization of requests)
     * @var string[]
     */
    protected static $getters = array(
        'git' => 'getGit',
        'svn' => 'getSvn',
        'hg' => 'getHg',
        'bzr' => 'getBzr',
        'frs' => 'getFrs',
        'tikcet' => 'getTikcet',
        'wiki' => 'getWiki',
        'forum' => 'getForum',
        'ml' => 'getMl'
    );

    public static function getters()
    {
        return self::$getters;
    }

    

    

    /**
     * Associative array for storing property values
     * @var mixed[]
     */
    protected $container = array();

    /**
     * Constructor
     * @param mixed[] $data Associated array of property value initalizing the model
     */
    public function __construct(array $data = null)
    {
        $this->container['git'] = isset($data['git']) ? $data['git'] : null;
        $this->container['svn'] = isset($data['svn']) ? $data['svn'] : null;
        $this->container['hg'] = isset($data['hg']) ? $data['hg'] : null;
        $this->container['bzr'] = isset($data['bzr']) ? $data['bzr'] : null;
        $this->container['frs'] = isset($data['frs']) ? $data['frs'] : null;
        $this->container['tikcet'] = isset($data['tikcet']) ? $data['tikcet'] : null;
        $this->container['wiki'] = isset($data['wiki']) ? $data['wiki'] : null;
        $this->container['forum'] = isset($data['forum']) ? $data['forum'] : null;
        $this->container['ml'] = isset($data['ml']) ? $data['ml'] : null;
    }

    /**
     * show all the invalid properties with reasons.
     *
     * @return array invalid properties with reasons
     */
    public function listInvalidProperties()
    {
        $invalid_properties = array();
        return $invalid_properties;
    }

    /**
     * validate all the properties in the model
     * return true if all passed
     *
     * @return bool True if all properteis are valid
     */
    public function valid()
    {
        return true;
    }


    /**
     * Gets git
     * @return bool
     */
    public function getGit()
    {
        return $this->container['git'];
    }

    /**
     * Sets git
     * @param bool $git
     * @return $this
     */
    public function setGit($git)
    {
        $this->container['git'] = $git;

        return $this;
    }

    /**
     * Gets svn
     * @return bool
     */
    public function getSvn()
    {
        return $this->container['svn'];
    }

    /**
     * Sets svn
     * @param bool $svn
     * @return $this
     */
    public function setSvn($svn)
    {
        $this->container['svn'] = $svn;

        return $this;
    }

    /**
     * Gets hg
     * @return bool
     */
    public function getHg()
    {
        return $this->container['hg'];
    }

    /**
     * Sets hg
     * @param bool $hg
     * @return $this
     */
    public function setHg($hg)
    {
        $this->container['hg'] = $hg;

        return $this;
    }

    /**
     * Gets bzr
     * @return bool
     */
    public function getBzr()
    {
        return $this->container['bzr'];
    }

    /**
     * Sets bzr
     * @param bool $bzr
     * @return $this
     */
    public function setBzr($bzr)
    {
        $this->container['bzr'] = $bzr;

        return $this;
    }

    /**
     * Gets frs
     * @return bool
     */
    public function getFrs()
    {
        return $this->container['frs'];
    }

    /**
     * Sets frs
     * @param bool $frs
     * @return $this
     */
    public function setFrs($frs)
    {
        $this->container['frs'] = $frs;

        return $this;
    }

    /**
     * Gets tikcet
     * @return bool
     */
    public function getTikcet()
    {
        return $this->container['tikcet'];
    }

    /**
     * Sets tikcet
     * @param bool $tikcet
     * @return $this
     */
    public function setTikcet($tikcet)
    {
        $this->container['tikcet'] = $tikcet;

        return $this;
    }

    /**
     * Gets wiki
     * @return bool
     */
    public function getWiki()
    {
        return $this->container['wiki'];
    }

    /**
     * Sets wiki
     * @param bool $wiki
     * @return $this
     */
    public function setWiki($wiki)
    {
        $this->container['wiki'] = $wiki;

        return $this;
    }

    /**
     * Gets forum
     * @return bool
     */
    public function getForum()
    {
        return $this->container['forum'];
    }

    /**
     * Sets forum
     * @param bool $forum
     * @return $this
     */
    public function setForum($forum)
    {
        $this->container['forum'] = $forum;

        return $this;
    }

    /**
     * Gets ml
     * @return bool
     */
    public function getMl()
    {
        return $this->container['ml'];
    }

    /**
     * Sets ml
     * @param bool $ml
     * @return $this
     */
    public function setMl($ml)
    {
        $this->container['ml'] = $ml;

        return $this;
    }
    /**
     * Returns true if offset exists. False otherwise.
     * @param  integer $offset Offset
     * @return boolean
     */
    public function offsetExists($offset)
    {
        return isset($this->container[$offset]);
    }

    /**
     * Gets offset.
     * @param  integer $offset Offset
     * @return mixed
     */
    public function offsetGet($offset)
    {
        return isset($this->container[$offset]) ? $this->container[$offset] : null;
    }

    /**
     * Sets value based on offset.
     * @param  integer $offset Offset
     * @param  mixed   $value  Value to be set
     * @return void
     */
    public function offsetSet($offset, $value)
    {
        if (is_null($offset)) {
            $this->container[] = $value;
        } else {
            $this->container[$offset] = $value;
        }
    }

    /**
     * Unsets offset.
     * @param  integer $offset Offset
     * @return void
     */
    public function offsetUnset($offset)
    {
        unset($this->container[$offset]);
    }

    /**
     * Gets the string presentation of the object
     * @return string
     */
    public function __toString()
    {
        if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
            return json_encode(\OSDN\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
        }

        return json_encode(\OSDN\ObjectSerializer::sanitizeForSerialization($this));
    }
}


