<?php


namespace ZendService\ZendServerAPI\Method;

/**
 * <b>The jobqueueJobInfo Method</b>
 *
 * <pre>Get detailed information about a job</pre>
 *
 * @license        http://framework.zend.com/license/new-bsd New BSD License
 * @link           http://github.com/zendframework/zf2 for the canonical source repository
 * @author         Ingo Walz <ingo.walz@googlemail.com>
 * @category       Zend
 * @package        Zend_Service
 * @subpackage     ZendServerAPI
 */
class JobqueueJobInfo extends Method
{
    protected $id = null;
    /**
     * set arguments for JobqueueJobInfo
     *
     * @param
     */
    public function setArgs($id)
    {
        $this->id = $id;
        $this->configure();

        return $this;
    }

    /**
     * Returns the correct accept header for a specific version
     *
     * @see \ZendService\ZendServerAPI\Method\Method::getAcceptHeader()
     * @return string
     */
    public function getAcceptHeader()
    {
        return "application/vnd.zend.serverapi+xml;version=1.3";
    }

    /**
     * Configures all needed information for the method implementation
     *
     * @return void
     */
    public function configure ()
    {
        $this->setMethod('GET');
        $this->setFunctionPath('/Api/jobqueueJobInfo');
        $this->setParser(new  \ZendService\ZendServerAPI\Adapter\DumpParser());
    }

    /**
     * Get link for the method
     *
     * @return string
     */
    public function getLink()
    {
        $link = $this->getFunctionPath();
        $link .= "?id=" . $this->id;


        return $link;
    }
}
