44 lines
772 B
PHP
44 lines
772 B
PHP
<?php
|
|
|
|
namespace Skobkin\Bundle\PointToolsBundle\DTO\Api\Crawler;
|
|
|
|
use JMS\Serializer\Annotation as JMSS;
|
|
|
|
/**
|
|
* @JMSS\ExclusionPolicy("none")
|
|
* @JMSS\AccessType("public_method")
|
|
*/
|
|
class PostsPage
|
|
{
|
|
/**
|
|
* @var MetaPost[]
|
|
*
|
|
* @JMSS\SerializedName("posts")
|
|
* @JMSS\Type("array<Skobkin\Bundle\PointToolsBundle\DTO\Api\Crawler\MetaPost>")
|
|
* @JMSS\MaxDepth(3)
|
|
*/
|
|
private $posts;
|
|
|
|
/**
|
|
* @return MetaPost[]
|
|
*/
|
|
public function getPosts(): ?array
|
|
{
|
|
return $this->posts;
|
|
}
|
|
|
|
/**
|
|
* @todo move to constructor
|
|
*
|
|
* @param MetaPost[] $posts
|
|
* @return PostsPage
|
|
*/
|
|
public function setPosts(?array $posts): self
|
|
{
|
|
$this->posts = $posts;
|
|
|
|
return $this;
|
|
}
|
|
|
|
|
|
} |