chobie\Jira\IssueType::__construct PHP Method

__construct() public method

Creates issue instance.
public __construct ( array $types )
$types array Types.
    public function __construct(array $types)
    {
        foreach ($types as $key => $value) {
            if (in_array($key, $this->_acceptableKeys)) {
                $this->{$key} = $value;
            } else {
                throw new \Exception('the key ' . $key . ' does not support');
            }
        }
    }