<commit_before><?php

namespace Com\PaulDevelop\Library\Application;

use Com\PaulDevelop\Library\Common\Base;

/**
 * Request
 *
 * @package  Com\PaulDevelop\Library\Application
 * @category Application
 * @author   <NAME> <<EMAIL>>
 * @license  http://opensource.org/licenses/MIT MIT
 *
 * @property RequestInput        $Input
 * @property string              $OriginalPath
 * @property string              $StrippedPath
 * @property ParameterCollection $SystemParameter
 * @property ParameterCollection $PathParameter
 * @property ParameterCollection $GetParameter
 * @property ParameterCollection $PostParameter
 */
class Request extends Base
{
    /**
     * @var IRequestInput
     */
    private $input;

    /**
     * @var string
     */
    private $originalPath;

    /**
     * @var string
     */
    private $strippedPath;

    /**
     * @var ParameterCollection
     */
    private $pathParameter;

    /**
     * @var ParameterCollection
     */
    private $systemParameter;

    /**
     * @var ParameterCollection
     */
    private $getParameter;

    /**
     * @var ParameterCollection
     */
    private $postParameter;

    /**
     * @param IRequestInput       $input
     * @param string              $originalPath
     * @param string              $strippedPath
     * @param ParameterCollection $pathParameter
     * @param ParameterCollection $systemParameter
     * @param ParameterCollection $getParameter
     * @param ParameterCollection $postParameter
     */
    public function __construct(
        IRequestInput $input = null,
        $originalPath = '',
        $strippedPath = '',
        ParameterCollection $pathParameter = null,
        ParameterCollection $systemParameter = null,
        ParameterCollection $getParameter = null,
        ParameterCollection $postParameter = null
    ) {
        $this->input = $input;
        $this->originalPath = $originalPath;
        $this->strippedPath = $strippedPath;
        $this->pathParameter = $pathParameter;
        $this->systemParameter = $systemParameter;
        $this->getParameter = $getParameter;
        $this->postParameter = $postParameter;
    }

    //public function getStdClass() {
    //    $result = new \stdClass();
    //    $result->input = $result->input->getStdClass();
    //}

    /**
     * @return IRequestInput
     */
    protected function getInput()
    {
        return $this->input;
    }

    /**
     * @return string
     */
    protected function getOriginalPath()
    {
        return $this->originalPath;
    }

    /**
     * @return string
     */
    protected function getStrippedPath()
    {
        return $this->strippedPath;
    }

    /**
     * @return ParameterCollection
     */
    protected function getPathParameter()
    {
        return $this->pathParameter;
    }

    /**
     * @return ParameterCollection
     */
    protected function getSystemParameter()
    {
        return $this->systemParameter;
    }

    /**
     * @return ParameterCollection
     */
    protected function getGetParameter()
    {
        return $this->getParameter;
    }

    /**
     * @return ParameterCollection
     */
    protected function getPostParameter()
    {
        return $this->postParameter;
    }
}<commit_msg>* added PATCH HTTP verb<commit_after><?php

namespace Com\PaulDevelop\Library\Application;

use Com\PaulDevelop\Library\Common\Base;

/**
 * Request
 *
 * @package  Com\PaulDevelop\Library\Application
 * @category Application
 * @author   <NAME> <<EMAIL>>
 * @license  http://opensource.org/licenses/MIT MIT
 *
 * @property RequestInput        $Input
 * @property string              $OriginalPath
 * @property string              $StrippedPath
 * @property ParameterCollection $SystemParameter
 * @property ParameterCollection $PathParameter
 * @property ParameterCollection $GetParameter
 * @property ParameterCollection $PostParameter
 */
class Request extends Base
{
    /**
     * @var IRequestInput
     */
    private $input;

    /**
     * @var string
     */
    private $originalPath;

    /**
     * @var string
     */
    private $strippedPath;

    /**
     * @var ParameterCollection
     */
    private $pathParameter;

    /**
     * @var ParameterCollection
     */
    private $systemParameter;

    /**
     * @var ParameterCollection
     */
    private $getParameter;

    /**
     * @var ParameterCollection
     */
    private $postParameter;

    /**
     * @var ParameterCollection
     */
    private $patchParameter;

    /**
     * @param IRequestInput       $input
     * @param string              $originalPath
     * @param string              $strippedPath
     * @param ParameterCollection $pathParameter
     * @param ParameterCollection $systemParameter
     * @param ParameterCollection $getParameter
     * @param ParameterCollection $postParameter
     * @param ParameterCollection $patchParameter
     */
    public function __construct(
        IRequestInput $input = null,
        $originalPath = '',
        $strippedPath = '',
        ParameterCollection $pathParameter = null,
        ParameterCollection $systemParameter = null,
        ParameterCollection $getParameter = null,
        ParameterCollection $postParameter = null,
        ParameterCollection $patchParameter = null
    ) {
        $this->input = $input;
        $this->originalPath = $originalPath;
        $this->strippedPath = $strippedPath;
        $this->pathParameter = $pathParameter;
        $this->systemParameter = $systemParameter;
        $this->getParameter = $getParameter;
        $this->postParameter = $postParameter;
        $this->patchParameter = $patchParameter;
    }

    //public function getStdClass() {
    //    $result = new \stdClass();
    //    $result->input = $result->input->getStdClass();
    //}

    /**
     * @return IRequestInput
     */
    protected function getInput()
    {
        return $this->input;
    }

    /**
     * @return string
     */
    protected function getOriginalPath()
    {
        return $this->originalPath;
    }

    /**
     * @return string
     */
    protected function getStrippedPath()
    {
        return $this->strippedPath;
    }

    /**
     * @return ParameterCollection
     */
    protected function getPathParameter()
    {
        return $this->pathParameter;
    }

    /**
     * @return ParameterCollection
     */
    protected function getSystemParameter()
    {
        return $this->systemParameter;
    }

    /**
     * @return ParameterCollection
     */
    protected function getGetParameter()
    {
        return $this->getParameter;
    }

    /**
     * @return ParameterCollection
     */
    protected function getPostParameter()
    {
        return $this->postParameter;
    }

    /**
     * @return ParameterCollection
     */
    protected function getPatchParameter()
    {
        return $this->patchParameter;
    }
}
{'fraction_non_alphanumeric': 0.11028985507246376, 'fraction_numerical': 0.0, 'mean_word_length': 2.209767441860465, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 45, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3788933', 'n_tokens_mistral': 1822, 'n_tokens_neox': 1778, 'n_words': 385}