public function __construct(Post $entity) { $this->name = $entity->getName(); $this->image = $entity->getImage(); $this->intro = $entity->getIntro(); $this->content = $entity->getContent(); $this->status = $entity->getStatus(); $this->tags = $entity->getTags(); }