<?php
/**
 * UserStats
 *
 * 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;

/**
 * UserStats 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 UserStats implements ArrayAccess
{
    /**
      * The original name of the model.
      * @var string
      */
    protected static $swaggerModelName = 'UserStats';

    /**
      * Array of property to type mappings. Used for (de)serialization
      * @var string[]
      */
    protected static $swaggerTypes = array(
        'date' => 'string',
        'user_point' => 'int',
        'news_count' => 'int',
        'git_count' => 'int',
        'svn_count' => 'int',
        'hg_count' => 'int',
        'bzr_count' => 'int',
        'cvs_count' => 'int',
        'wiki_count' => 'int',
        'forum_count' => 'int',
        'forum_misc_count' => 'int',
        'ticket_open_count' => 'int',
        'ticket_close_count' => 'int',
        'ticket_comment_count' => 'int',
        'ticket_owner_count' => 'int',
        'ticket_misc_count' => 'int',
        'ticket_milestone_count' => 'int',
        'group_approved_count' => 'int',
        'group_history_count' => 'int',
        'ghosted_submit_count' => 'int',
        'ghosted_approve_count' => 'int',
        'project_review_submit_count' => 'int',
        'project_review_update_count' => 'int',
        'project_review_rating_submit_count' => 'int',
        'chamber_file_count' => 'int',
        'chamber_vcs_count' => 'int'
    );

    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(
        'date' => 'date',
        'user_point' => 'user_point',
        'news_count' => 'news_count',
        'git_count' => 'git_count',
        'svn_count' => 'svn_count',
        'hg_count' => 'hg_count',
        'bzr_count' => 'bzr_count',
        'cvs_count' => 'cvs_count',
        'wiki_count' => 'wiki_count',
        'forum_count' => 'forum_count',
        'forum_misc_count' => 'forum_misc_count',
        'ticket_open_count' => 'ticket_open_count',
        'ticket_close_count' => 'ticket_close_count',
        'ticket_comment_count' => 'ticket_comment_count',
        'ticket_owner_count' => 'ticket_owner_count',
        'ticket_misc_count' => 'ticket_misc_count',
        'ticket_milestone_count' => 'ticket_milestone_count',
        'group_approved_count' => 'group_approved_count',
        'group_history_count' => 'group_history_count',
        'ghosted_submit_count' => 'ghosted_submit_count',
        'ghosted_approve_count' => 'ghosted_approve_count',
        'project_review_submit_count' => 'project_review_submit_count',
        'project_review_update_count' => 'project_review_update_count',
        'project_review_rating_submit_count' => 'project_review_rating_submit_count',
        'chamber_file_count' => 'chamber_file_count',
        'chamber_vcs_count' => 'chamber_vcs_count'
    );

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

    /**
     * Array of attributes to setter functions (for deserialization of responses)
     * @var string[]
     */
    protected static $setters = array(
        'date' => 'setDate',
        'user_point' => 'setUserPoint',
        'news_count' => 'setNewsCount',
        'git_count' => 'setGitCount',
        'svn_count' => 'setSvnCount',
        'hg_count' => 'setHgCount',
        'bzr_count' => 'setBzrCount',
        'cvs_count' => 'setCvsCount',
        'wiki_count' => 'setWikiCount',
        'forum_count' => 'setForumCount',
        'forum_misc_count' => 'setForumMiscCount',
        'ticket_open_count' => 'setTicketOpenCount',
        'ticket_close_count' => 'setTicketCloseCount',
        'ticket_comment_count' => 'setTicketCommentCount',
        'ticket_owner_count' => 'setTicketOwnerCount',
        'ticket_misc_count' => 'setTicketMiscCount',
        'ticket_milestone_count' => 'setTicketMilestoneCount',
        'group_approved_count' => 'setGroupApprovedCount',
        'group_history_count' => 'setGroupHistoryCount',
        'ghosted_submit_count' => 'setGhostedSubmitCount',
        'ghosted_approve_count' => 'setGhostedApproveCount',
        'project_review_submit_count' => 'setProjectReviewSubmitCount',
        'project_review_update_count' => 'setProjectReviewUpdateCount',
        'project_review_rating_submit_count' => 'setProjectReviewRatingSubmitCount',
        'chamber_file_count' => 'setChamberFileCount',
        'chamber_vcs_count' => 'setChamberVcsCount'
    );

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

    /**
     * Array of attributes to getter functions (for serialization of requests)
     * @var string[]
     */
    protected static $getters = array(
        'date' => 'getDate',
        'user_point' => 'getUserPoint',
        'news_count' => 'getNewsCount',
        'git_count' => 'getGitCount',
        'svn_count' => 'getSvnCount',
        'hg_count' => 'getHgCount',
        'bzr_count' => 'getBzrCount',
        'cvs_count' => 'getCvsCount',
        'wiki_count' => 'getWikiCount',
        'forum_count' => 'getForumCount',
        'forum_misc_count' => 'getForumMiscCount',
        'ticket_open_count' => 'getTicketOpenCount',
        'ticket_close_count' => 'getTicketCloseCount',
        'ticket_comment_count' => 'getTicketCommentCount',
        'ticket_owner_count' => 'getTicketOwnerCount',
        'ticket_misc_count' => 'getTicketMiscCount',
        'ticket_milestone_count' => 'getTicketMilestoneCount',
        'group_approved_count' => 'getGroupApprovedCount',
        'group_history_count' => 'getGroupHistoryCount',
        'ghosted_submit_count' => 'getGhostedSubmitCount',
        'ghosted_approve_count' => 'getGhostedApproveCount',
        'project_review_submit_count' => 'getProjectReviewSubmitCount',
        'project_review_update_count' => 'getProjectReviewUpdateCount',
        'project_review_rating_submit_count' => 'getProjectReviewRatingSubmitCount',
        'chamber_file_count' => 'getChamberFileCount',
        'chamber_vcs_count' => 'getChamberVcsCount'
    );

    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['date'] = isset($data['date']) ? $data['date'] : null;
        $this->container['user_point'] = isset($data['user_point']) ? $data['user_point'] : null;
        $this->container['news_count'] = isset($data['news_count']) ? $data['news_count'] : null;
        $this->container['git_count'] = isset($data['git_count']) ? $data['git_count'] : null;
        $this->container['svn_count'] = isset($data['svn_count']) ? $data['svn_count'] : null;
        $this->container['hg_count'] = isset($data['hg_count']) ? $data['hg_count'] : null;
        $this->container['bzr_count'] = isset($data['bzr_count']) ? $data['bzr_count'] : null;
        $this->container['cvs_count'] = isset($data['cvs_count']) ? $data['cvs_count'] : null;
        $this->container['wiki_count'] = isset($data['wiki_count']) ? $data['wiki_count'] : null;
        $this->container['forum_count'] = isset($data['forum_count']) ? $data['forum_count'] : null;
        $this->container['forum_misc_count'] = isset($data['forum_misc_count']) ? $data['forum_misc_count'] : null;
        $this->container['ticket_open_count'] = isset($data['ticket_open_count']) ? $data['ticket_open_count'] : null;
        $this->container['ticket_close_count'] = isset($data['ticket_close_count']) ? $data['ticket_close_count'] : null;
        $this->container['ticket_comment_count'] = isset($data['ticket_comment_count']) ? $data['ticket_comment_count'] : null;
        $this->container['ticket_owner_count'] = isset($data['ticket_owner_count']) ? $data['ticket_owner_count'] : null;
        $this->container['ticket_misc_count'] = isset($data['ticket_misc_count']) ? $data['ticket_misc_count'] : null;
        $this->container['ticket_milestone_count'] = isset($data['ticket_milestone_count']) ? $data['ticket_milestone_count'] : null;
        $this->container['group_approved_count'] = isset($data['group_approved_count']) ? $data['group_approved_count'] : null;
        $this->container['group_history_count'] = isset($data['group_history_count']) ? $data['group_history_count'] : null;
        $this->container['ghosted_submit_count'] = isset($data['ghosted_submit_count']) ? $data['ghosted_submit_count'] : null;
        $this->container['ghosted_approve_count'] = isset($data['ghosted_approve_count']) ? $data['ghosted_approve_count'] : null;
        $this->container['project_review_submit_count'] = isset($data['project_review_submit_count']) ? $data['project_review_submit_count'] : null;
        $this->container['project_review_update_count'] = isset($data['project_review_update_count']) ? $data['project_review_update_count'] : null;
        $this->container['project_review_rating_submit_count'] = isset($data['project_review_rating_submit_count']) ? $data['project_review_rating_submit_count'] : null;
        $this->container['chamber_file_count'] = isset($data['chamber_file_count']) ? $data['chamber_file_count'] : null;
        $this->container['chamber_vcs_count'] = isset($data['chamber_vcs_count']) ? $data['chamber_vcs_count'] : 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 date
     * @return string
     */
    public function getDate()
    {
        return $this->container['date'];
    }

    /**
     * Sets date
     * @param string $date
     * @return $this
     */
    public function setDate($date)
    {
        $this->container['date'] = $date;

        return $this;
    }

    /**
     * Gets user_point
     * @return int
     */
    public function getUserPoint()
    {
        return $this->container['user_point'];
    }

    /**
     * Sets user_point
     * @param int $user_point
     * @return $this
     */
    public function setUserPoint($user_point)
    {
        $this->container['user_point'] = $user_point;

        return $this;
    }

    /**
     * Gets news_count
     * @return int
     */
    public function getNewsCount()
    {
        return $this->container['news_count'];
    }

    /**
     * Sets news_count
     * @param int $news_count
     * @return $this
     */
    public function setNewsCount($news_count)
    {
        $this->container['news_count'] = $news_count;

        return $this;
    }

    /**
     * Gets git_count
     * @return int
     */
    public function getGitCount()
    {
        return $this->container['git_count'];
    }

    /**
     * Sets git_count
     * @param int $git_count
     * @return $this
     */
    public function setGitCount($git_count)
    {
        $this->container['git_count'] = $git_count;

        return $this;
    }

    /**
     * Gets svn_count
     * @return int
     */
    public function getSvnCount()
    {
        return $this->container['svn_count'];
    }

    /**
     * Sets svn_count
     * @param int $svn_count
     * @return $this
     */
    public function setSvnCount($svn_count)
    {
        $this->container['svn_count'] = $svn_count;

        return $this;
    }

    /**
     * Gets hg_count
     * @return int
     */
    public function getHgCount()
    {
        return $this->container['hg_count'];
    }

    /**
     * Sets hg_count
     * @param int $hg_count
     * @return $this
     */
    public function setHgCount($hg_count)
    {
        $this->container['hg_count'] = $hg_count;

        return $this;
    }

    /**
     * Gets bzr_count
     * @return int
     */
    public function getBzrCount()
    {
        return $this->container['bzr_count'];
    }

    /**
     * Sets bzr_count
     * @param int $bzr_count
     * @return $this
     */
    public function setBzrCount($bzr_count)
    {
        $this->container['bzr_count'] = $bzr_count;

        return $this;
    }

    /**
     * Gets cvs_count
     * @return int
     */
    public function getCvsCount()
    {
        return $this->container['cvs_count'];
    }

    /**
     * Sets cvs_count
     * @param int $cvs_count
     * @return $this
     */
    public function setCvsCount($cvs_count)
    {
        $this->container['cvs_count'] = $cvs_count;

        return $this;
    }

    /**
     * Gets wiki_count
     * @return int
     */
    public function getWikiCount()
    {
        return $this->container['wiki_count'];
    }

    /**
     * Sets wiki_count
     * @param int $wiki_count
     * @return $this
     */
    public function setWikiCount($wiki_count)
    {
        $this->container['wiki_count'] = $wiki_count;

        return $this;
    }

    /**
     * Gets forum_count
     * @return int
     */
    public function getForumCount()
    {
        return $this->container['forum_count'];
    }

    /**
     * Sets forum_count
     * @param int $forum_count
     * @return $this
     */
    public function setForumCount($forum_count)
    {
        $this->container['forum_count'] = $forum_count;

        return $this;
    }

    /**
     * Gets forum_misc_count
     * @return int
     */
    public function getForumMiscCount()
    {
        return $this->container['forum_misc_count'];
    }

    /**
     * Sets forum_misc_count
     * @param int $forum_misc_count
     * @return $this
     */
    public function setForumMiscCount($forum_misc_count)
    {
        $this->container['forum_misc_count'] = $forum_misc_count;

        return $this;
    }

    /**
     * Gets ticket_open_count
     * @return int
     */
    public function getTicketOpenCount()
    {
        return $this->container['ticket_open_count'];
    }

    /**
     * Sets ticket_open_count
     * @param int $ticket_open_count
     * @return $this
     */
    public function setTicketOpenCount($ticket_open_count)
    {
        $this->container['ticket_open_count'] = $ticket_open_count;

        return $this;
    }

    /**
     * Gets ticket_close_count
     * @return int
     */
    public function getTicketCloseCount()
    {
        return $this->container['ticket_close_count'];
    }

    /**
     * Sets ticket_close_count
     * @param int $ticket_close_count
     * @return $this
     */
    public function setTicketCloseCount($ticket_close_count)
    {
        $this->container['ticket_close_count'] = $ticket_close_count;

        return $this;
    }

    /**
     * Gets ticket_comment_count
     * @return int
     */
    public function getTicketCommentCount()
    {
        return $this->container['ticket_comment_count'];
    }

    /**
     * Sets ticket_comment_count
     * @param int $ticket_comment_count
     * @return $this
     */
    public function setTicketCommentCount($ticket_comment_count)
    {
        $this->container['ticket_comment_count'] = $ticket_comment_count;

        return $this;
    }

    /**
     * Gets ticket_owner_count
     * @return int
     */
    public function getTicketOwnerCount()
    {
        return $this->container['ticket_owner_count'];
    }

    /**
     * Sets ticket_owner_count
     * @param int $ticket_owner_count
     * @return $this
     */
    public function setTicketOwnerCount($ticket_owner_count)
    {
        $this->container['ticket_owner_count'] = $ticket_owner_count;

        return $this;
    }

    /**
     * Gets ticket_misc_count
     * @return int
     */
    public function getTicketMiscCount()
    {
        return $this->container['ticket_misc_count'];
    }

    /**
     * Sets ticket_misc_count
     * @param int $ticket_misc_count
     * @return $this
     */
    public function setTicketMiscCount($ticket_misc_count)
    {
        $this->container['ticket_misc_count'] = $ticket_misc_count;

        return $this;
    }

    /**
     * Gets ticket_milestone_count
     * @return int
     */
    public function getTicketMilestoneCount()
    {
        return $this->container['ticket_milestone_count'];
    }

    /**
     * Sets ticket_milestone_count
     * @param int $ticket_milestone_count
     * @return $this
     */
    public function setTicketMilestoneCount($ticket_milestone_count)
    {
        $this->container['ticket_milestone_count'] = $ticket_milestone_count;

        return $this;
    }

    /**
     * Gets group_approved_count
     * @return int
     */
    public function getGroupApprovedCount()
    {
        return $this->container['group_approved_count'];
    }

    /**
     * Sets group_approved_count
     * @param int $group_approved_count
     * @return $this
     */
    public function setGroupApprovedCount($group_approved_count)
    {
        $this->container['group_approved_count'] = $group_approved_count;

        return $this;
    }

    /**
     * Gets group_history_count
     * @return int
     */
    public function getGroupHistoryCount()
    {
        return $this->container['group_history_count'];
    }

    /**
     * Sets group_history_count
     * @param int $group_history_count
     * @return $this
     */
    public function setGroupHistoryCount($group_history_count)
    {
        $this->container['group_history_count'] = $group_history_count;

        return $this;
    }

    /**
     * Gets ghosted_submit_count
     * @return int
     */
    public function getGhostedSubmitCount()
    {
        return $this->container['ghosted_submit_count'];
    }

    /**
     * Sets ghosted_submit_count
     * @param int $ghosted_submit_count
     * @return $this
     */
    public function setGhostedSubmitCount($ghosted_submit_count)
    {
        $this->container['ghosted_submit_count'] = $ghosted_submit_count;

        return $this;
    }

    /**
     * Gets ghosted_approve_count
     * @return int
     */
    public function getGhostedApproveCount()
    {
        return $this->container['ghosted_approve_count'];
    }

    /**
     * Sets ghosted_approve_count
     * @param int $ghosted_approve_count
     * @return $this
     */
    public function setGhostedApproveCount($ghosted_approve_count)
    {
        $this->container['ghosted_approve_count'] = $ghosted_approve_count;

        return $this;
    }

    /**
     * Gets project_review_submit_count
     * @return int
     */
    public function getProjectReviewSubmitCount()
    {
        return $this->container['project_review_submit_count'];
    }

    /**
     * Sets project_review_submit_count
     * @param int $project_review_submit_count
     * @return $this
     */
    public function setProjectReviewSubmitCount($project_review_submit_count)
    {
        $this->container['project_review_submit_count'] = $project_review_submit_count;

        return $this;
    }

    /**
     * Gets project_review_update_count
     * @return int
     */
    public function getProjectReviewUpdateCount()
    {
        return $this->container['project_review_update_count'];
    }

    /**
     * Sets project_review_update_count
     * @param int $project_review_update_count
     * @return $this
     */
    public function setProjectReviewUpdateCount($project_review_update_count)
    {
        $this->container['project_review_update_count'] = $project_review_update_count;

        return $this;
    }

    /**
     * Gets project_review_rating_submit_count
     * @return int
     */
    public function getProjectReviewRatingSubmitCount()
    {
        return $this->container['project_review_rating_submit_count'];
    }

    /**
     * Sets project_review_rating_submit_count
     * @param int $project_review_rating_submit_count
     * @return $this
     */
    public function setProjectReviewRatingSubmitCount($project_review_rating_submit_count)
    {
        $this->container['project_review_rating_submit_count'] = $project_review_rating_submit_count;

        return $this;
    }

    /**
     * Gets chamber_file_count
     * @return int
     */
    public function getChamberFileCount()
    {
        return $this->container['chamber_file_count'];
    }

    /**
     * Sets chamber_file_count
     * @param int $chamber_file_count
     * @return $this
     */
    public function setChamberFileCount($chamber_file_count)
    {
        $this->container['chamber_file_count'] = $chamber_file_count;

        return $this;
    }

    /**
     * Gets chamber_vcs_count
     * @return int
     */
    public function getChamberVcsCount()
    {
        return $this->container['chamber_vcs_count'];
    }

    /**
     * Sets chamber_vcs_count
     * @param int $chamber_vcs_count
     * @return $this
     */
    public function setChamberVcsCount($chamber_vcs_count)
    {
        $this->container['chamber_vcs_count'] = $chamber_vcs_count;

        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));
    }
}


