This repository has been archived on 2025-02-26. You can view files and clone it, but cannot push or open issues or pull requests.
szurubooru/src/Entities/PostNote.php
2014-10-26 01:42:23 +02:00

85 lines
1.1 KiB
PHP

<?php
namespace Szurubooru\Entities;
final class PostNote extends Entity
{
private $postId;
private $left;
private $top;
private $width;
private $height;
private $text;
const LAZY_LOADER_POST = 'post';
public function getPostId()
{
return $this->postId;
}
public function setPostId($postId)
{
$this->postId = $postId;
}
public function getLeft()
{
return $this->left;
}
public function setLeft($left)
{
$this->left = $left;
}
public function getTop()
{
return $this->top;
}
public function setTop($top)
{
$this->top = $top;
}
public function getWidth()
{
return $this->width;
}
public function setWidth($width)
{
$this->width = $width;
}
public function getHeight()
{
return $this->height;
}
public function setHeight($height)
{
$this->height = $height;
}
public function getText()
{
return $this->text;
}
public function setText($text)
{
$this->text = $text;
}
public function getPost()
{
return $this->lazyLoad(self::LAZY_LOADER_POST, null);
}
public function setPost(Post $post)
{
$this->lazySave(self::LAZY_LOADER_POST, $post);
$this->postId = $post->getId();
}
}