<commit_before><?php
/**
 * Created by PhpStorm.
 * User: imanuel
 * Date: 01.06.18
 * Time: 08:06
 */

namespace Jinya\Entity\Video;

use Doctrine\ORM\Mapping as ORM;
use Jinya\Entity\HistoryEnabledEntity;
use Jinya\Entity\SlugEntity;

/**
 * @ORM\Entity
 * @ORM\Table(name="youtube_video")
 */
class YoutubeVideo extends HistoryEnabledEntity
{
    use SlugEntity;

    /**
     * @ORM\Column(type="text")
     * @var string
     */
    private $description;

    /**
     * @ORM\Column(type="string")
     * @var string
     */
    private $videoKey;

    /**
     * @return string
     */
    public function getDescription(): string
    {
        return $this->description;
    }

    /**
     * @param string $description
     */
    public function setDescription(string $description): void
    {
        $this->description = $description;
    }

    /**
     * @return string
     */
    public function getVideoKey(): string
    {
        return $this->videoKey;
    }

    /**
     * @param string $videoKey
     */
    public function setVideoKey(string $videoKey): void
    {
        $this->videoKey = $videoKey;
    }

    /**
     * Specify data which should be serialized to JSON
     * @see http://php.net/manual/en/jsonserializable.jsonserialize.php
     * @return mixed data which can be serialized by <b>json_encode</b>,
     * which is a value of any type other than a resource
     * @since 5.4.0
     */
    public function jsonSerialize()
    {
        return [
            'name' => $this->name,
            'description' => $this->description,
            'slug' => $this->slug,
            'id' => $this->id,
            'url' => $this->videoKey,
            'createdAt' => $this->getCreatedAt(),
            'createdBy' => $this->getCreator(),
            'lastUpdatedAt' => $this->getLastUpdatedAt(),
            'updatedBy' => $this->getUpdatedBy(),
        ];
    }
}<commit_msg>Added video key to history<commit_after><?php
/**
 * Created by PhpStorm.
 * User: imanuel
 * Date: 01.06.18
 * Time: 08:06
 */

namespace Jinya\Entity\Video;

use Doctrine\ORM\Mapping as ORM;
use Jinya\Entity\HistoryEnabledEntity;
use Jinya\Entity\SlugEntity;

/**
 * @ORM\Entity
 * @ORM\Table(name="youtube_video")
 */
class YoutubeVideo extends HistoryEnabledEntity
{
    use SlugEntity;

    /**
     * @ORM\Column(type="text")
     * @var string
     */
    private $description;

    /**
     * @ORM\Column(type="string")
     * @var string
     */
    private $videoKey;

    /**
     * @return string
     */
    public function getDescription(): string
    {
        return $this->description;
    }

    /**
     * @param string $description
     */
    public function setDescription(string $description): void
    {
        $this->description = $description;
    }

    /**
     * @return string
     */
    public function getVideoKey(): string
    {
        return $this->videoKey;
    }

    /**
     * @param string $videoKey
     */
    public function setVideoKey(string $videoKey): void
    {
        $this->videoKey = $videoKey;
    }

    /**
     * Specify data which should be serialized to JSON
     * @see http://php.net/manual/en/jsonserializable.jsonserialize.php
     * @return mixed data which can be serialized by <b>json_encode</b>,
     * which is a value of any type other than a resource
     * @since 5.4.0
     */
    public function jsonSerialize()
    {
        return [
            'name' => $this->name,
            'description' => $this->description,
            'slug' => $this->slug,
            'id' => $this->id,
            'videoKey' => $this->videoKey,
            'createdAt' => $this->getCreatedAt(),
            'createdBy' => $this->getCreator(),
            'lastUpdatedAt' => $this->getLastUpdatedAt(),
            'updatedBy' => $this->getUpdatedBy(),
        ];
    }
}
{'fraction_non_alphanumeric': 0.14345331246739698, 'fraction_numerical': 0.006781429316640584, 'mean_word_length': 2.0803212851405624, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 51, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7639090', 'n_tokens_mistral': 1194, 'n_tokens_neox': 1170, 'n_words': 260}