Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/old/vendor/sebastianfeldmann/git/src/Log/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/vendor/sebastianfeldmann/git/src/Log/Commit.php
<?php

/**
 * This file is part of SebastianFeldmann\Git.
 *
 * (c) Sebastian Feldmann <[email protected]>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace SebastianFeldmann\Git\Log;

/**
 * Class Commit
 *
 * @package SebastianFeldmann\Git
 * @author  Sebastian Feldmann <[email protected]>
 * @link    https://github.com/sebastianfeldmann/git
 * @since   Class available since Release 1.2.0
 */
class Commit
{
    /**
     * @var string
     */
    private $hash;

    /**
     * @var array<string>
     */
    private $names;

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

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

    /**
     * @var \DateTimeImmutable
     */
    private $date;

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

    /**
     * Commit constructor
     *
     * @param string             $hash
     * @param array<string>      $names
     * @param string             $subject
     * @param string             $body
     * @param \DateTimeImmutable $date
     * @param string             $author
     */
    public function __construct(
        string $hash,
        array $names,
        string $subject,
        string $body,
        \DateTimeImmutable $date,
        string $author
    ) {
        $this->hash    = $hash;
        $this->names   = $names;
        $this->subject = $subject;
        $this->body    = $body;
        $this->date    = $date;
        $this->author  = $author;
    }

    /**
     * Hash getter
     *
     * @return string
     */
    public function getHash(): string
    {
        return $this->hash;
    }

    /**
     * Does the commit have names
     *
     * @return bool
     */
    public function hasNames(): bool
    {
        return !empty($this->names);
    }

    /**
     * Names getter
     *
     * @return array<string>
     */
    public function getNames(): array
    {
        return $this->names;
    }

    /**
     * Description getter
     *
     * @deprecated
     *
     * @return string
     */
    public function getDescription(): string
    {
        return $this->getSubject();
    }

    /**
     * Subject getter
     *
     * @return string
     */
    public function getSubject(): string
    {
        return $this->subject;
    }

    /**
     * Body getter
     *
     * @return string
     */
    public function getBody(): string
    {
        return $this->body;
    }

    /**
     * Date getter
     *
     * @return \DateTimeImmutable
     */
    public function getDate(): \DateTimeImmutable
    {
        return $this->date;
    }

    /**
     * Author getter
     *
     * @return string
     */
    public function getAuthor(): string
    {
        return $this->author;
    }
}

Spamworldpro Mini