Файл: plugins/stories/bol/dto/post.php
Строк: 57
<?php
class Post extends PEEP_Entity
{
public
$authorId,
$title,
$post,
$timestamp,
$isDraft,
$privacy = 'everybody';
/**
* @return int
*/
public function getAuthorId()
{
return $this->authorId;
}
/**
* @return string
*/
public function getPost()
{
return $this->post;
}
/**
* @return int
*/
public function getTimestamp()
{
return $this->timestamp;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
public function isDraft()
{
return $this->isDraft == 1 || $this->isDraft == 2;
}
public function getStatus()
{
return $this->isDraft;
}
/**
* @param int $authorId
*
* @return $this
*/
public function setAuthorId( $authorId )
{
$this->authorId = $authorId;
return $this;
}
/**
* @param string $post
*
* @return $this
*/
public function setPost( $post )
{
$this->post = $post;
return $this;
}
/**
* @param int $timestamp
*
* @return $this
*/
public function setTimestamp( $timestamp )
{
$this->timestamp = $timestamp;
return $this;
}
/**
* @param string $title
*/
public function setTitle( $title )
{
$this->title = $title;
return $this;
}
public function setIsDraft( $isDraft )
{
$this->isDraft = $isDraft;
return $this;
}
public function setPrivacy( $privacy )
{
$this->privacy = $privacy;
return $this;
}
public function getPrivacy()
{
return $this->privacy;
}
}
?>