<commit_before><?php

namespace Ojs\JournalBundle\Entity;

use APY\DataGridBundle\Grid\Mapping\Source;
use Ojs\CoreBundle\Annotation\Display;
use Prezent\Doctrine\Translatable\Annotation as Prezent;
use Ojs\CoreBundle\Entity\DisplayTrait;

/**
 * JournalAnnouncement
 * @Source(columns="id, title, content")
 */
class JournalAnnouncement implements JournalItemInterface
{
    use DisplayTrait;

    /** @var Journal */
    private $journal;

    /**
     * @var integer
     */
    private $id;

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

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

    /**
     * @var string
     * @Display\Image(filter="announcement_original")
     */
    private $image;

    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set title
     *
     * @param string $title
     *
     * @return JournalAnnouncement
     */
    public function setTitle($title)
    {
        $this->title = $title;

        return $this;
    }

    /**
     * Get title
     *
     * @return string
     */
    public function getTitle()
    {
        return $this->title;
    }

    /**
     * Set content
     *
     * @param string $content
     *
     * @return JournalAnnouncement
     */
    public function setContent($content)
    {
        $this->content = $content;

        return $this;
    }

    /**
     * Get content
     *
     * @return string
     */
    public function getContent()
    {
        return $this->content;
    }

    /**
     * @return string
     */
    public function getImage()
    {
        return $this->image;
    }

    /**
     * @param string $image
     */
    public function setImage($image)
    {
        $this->image = $image;
    }

    /**
     * @return Journal
     */
    public function getJournal()
    {
        return $this->journal;
    }

    /**
     * @param Journal $journal
     * @return $this
     */
    public function setJournal(Journal $journal)
    {
        $this->journal = $journal;

        return $this;
    }
}
<commit_msg>add toString function to journal announcement entity :bug: fix<commit_after><?php

namespace Ojs\JournalBundle\Entity;

use APY\DataGridBundle\Grid\Mapping\Source;
use Ojs\CoreBundle\Annotation\Display;
use Prezent\Doctrine\Translatable\Annotation as Prezent;
use Ojs\CoreBundle\Entity\DisplayTrait;

/**
 * JournalAnnouncement
 * @Source(columns="id, title, content")
 */
class JournalAnnouncement implements JournalItemInterface
{
    use DisplayTrait;

    /** @var Journal */
    private $journal;

    /**
     * @var integer
     */
    private $id;

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

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

    /**
     * @var string
     * @Display\Image(filter="announcement_original")
     */
    private $image;

    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set title
     *
     * @param string $title
     *
     * @return JournalAnnouncement
     */
    public function setTitle($title)
    {
        $this->title = $title;

        return $this;
    }

    /**
     * Get title
     *
     * @return string
     */
    public function getTitle()
    {
        return $this->title;
    }

    /**
     * Set content
     *
     * @param string $content
     *
     * @return JournalAnnouncement
     */
    public function setContent($content)
    {
        $this->content = $content;

        return $this;
    }

    /**
     * Get content
     *
     * @return string
     */
    public function getContent()
    {
        return $this->content;
    }

    /**
     * @return string
     */
    public function getImage()
    {
        return $this->image;
    }

    /**
     * @param string $image
     */
    public function setImage($image)
    {
        $this->image = $image;
    }

    /**
     * @return Journal
     */
    public function getJournal()
    {
        return $this->journal;
    }

    /**
     * @param Journal $journal
     * @return $this
     */
    public function setJournal(Journal $journal)
    {
        $this->journal = $journal;

        return $this;
    }

    public function __toString()
    {
        return $this->getTitle();
    }
}

{'fraction_non_alphanumeric': 0.1270350836963999, 'fraction_numerical': 0.0, 'mean_word_length': 1.6925925925925926, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 22, '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': '410897', 'n_tokens_mistral': 1344, 'n_tokens_neox': 1311, 'n_words': 281}