<commit_before><?php namespace Exolnet\Image;

use \Illuminate\Database\Eloquent\Model;
use \DateTime;

class Image extends Model implements Imageable
{
	/**
	 * The database table used by the model.
	 *
	 * @var string
	 */
	protected $table = 'image';

	/**
	 * The attributes that are mass assignable.
	 *
	 * @var array
	 */
	protected $fillable = ['filename'];

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

	/**
	 * @param string $filename
	 * @return $this
	 */
	public function setFilename($filename)
	{
		$this->filename = $filename;

		return $this;
	}

	/**
	 * @return string
	 */
	public function getImagePath()
	{
		return public_path('uploads/images/'. $this->getFilename());
	}

	/**
	 * @return string
	 */
	public function getImageUrl()
	{
		return asset('uploads/images/'. $this->getFilename());
	}

	/**
	 * @return \DateTime
	 */
	public function getCreatedAt()
	{
		return $this->created_at;
	}

	/**
	 * @return \DateTime
	 */
	public function getUpdatedAt()
	{
		return $this->updated_at;
	}
}
<commit_msg>Ajout du getter pour le Id<commit_after><?php namespace Exolnet\Image;

use \Illuminate\Database\Eloquent\Model;
use \DateTime;

class Image extends Model implements Imageable
{
	/**
	 * The database table used by the model.
	 *
	 * @var string
	 */
	protected $table = 'image';

	/**
	 * The attributes that are mass assignable.
	 *
	 * @var array
	 */
	protected $fillable = ['filename'];

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

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

	/**
	 * @param string $filename
	 * @return $this
	 */
	public function setFilename($filename)
	{
		$this->filename = $filename;

		return $this;
	}

	/**
	 * @return string
	 */
	public function getImagePath()
	{
		return public_path('uploads/images/'. $this->getFilename());
	}

	/**
	 * @return string
	 */
	public function getImageUrl()
	{
		return asset('uploads/images/'. $this->getFilename());
	}

	/**
	 * @return \DateTime
	 */
	public function getCreatedAt()
	{
		return $this->created_at;
	}

	/**
	 * @return \DateTime
	 */
	public function getUpdatedAt()
	{
		return $this->updated_at;
	}
}

{'fraction_non_alphanumeric': 0.155456570155902, 'fraction_numerical': 0.0, 'mean_word_length': 3.025089605734767, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 16, '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': '1721174', 'n_tokens_mistral': 810, 'n_tokens_neox': 735, 'n_words': 182}