Newscoop\NewscoopBundle\Entity\Topic::setTitle PHP Method

setTitle() public method

Sets the value of title.
public setTitle ( mixed $title ) : self
$title mixed the title
return self
    public function setTitle($title)
    {
        $this->title = $title;
        return $this;
    }

Usage Example

コード例 #1
0
 public function its_unlinkFromUserAction_should_unlink_topic_from_user($request, $repository, $user)
 {
     $topic = new Topic();
     $topic->setId(10);
     $topic->setTitle('test');
     $topic->setParent(null);
     $userId = 1;
     $parameterBag = new ParameterBag();
     $parameterBag->set('links', array(array('object' => $topic)));
     $request->attributes = $parameterBag;
     $repository->findOneBy(array('id' => $userId))->shouldBeCalled()->willReturn($user);
     $this->unlinkFromUserAction($request, $userId)->shouldReturn(null);
 }
All Usage Examples Of Newscoop\NewscoopBundle\Entity\Topic::setTitle