public function create($account, $repo, array $options = array())
    {
        if (!isset($options['title']) || !isset($options['content'])) {
            throw new \InvalidArgumentException(
                'Arguments: "title" and "content" are mandatory.'
            );
        }

        return $this->requestPost(
            sprintf('repositories/%s/%s/issues', $account, $repo),
            $options
        );
    }
public function create($account, $repo, array $options = array())
    {
        if (!isset($options['title']) || !isset($options['content'])) {
            throw new \InvalidArgumentException(
                'Arguments: "title" and "content" are mandatory.'
            );
        }

        return $this->requestPost(
            sprintf('repositories/%s/%s/issues', $account, $repo),
            $options
        );
    }
public function create ( $ account , $ repo , array $ options = array ( ) ) { if ( ! isset ( $ options [ 'title' ] ) || ! isset ( $ options [ 'content' ] ) ) { throw new \ InvalidArgumentException ( 'Arguments: "title" and "content" are mandatory.' ) ; } return $ this -> requestPost ( sprintf ( 'repositories/%s/%s/issues' , $ account , $ repo ) , $ options ) ; }
POST a new issue

@access public
@param  string           $account The team or individual account owning the repository.
@param  string           $repo    The repository identifier.
@param  array            $options Issue parameters
@return MessageInterface

@throws \InvalidArgumentException

@see https://confluence.atlassian.com/display/BITBUCKET/issues+Resource#issuesResource-POSTanewissue
POST a new issue