Newscoop\Entity\Article::getSectionId PHP Method

getSectionId() public method

Gets the value of sectionId.
public getSectionId ( ) : integer
return integer
    public function getSectionId()
    {
        return $this->sectionId;
    }

Usage Example

 public function let(TraceableEventDispatcher $dispatcher, EntityManager $em, Article $article, Language $language)
 {
     $article->getNumber()->willReturn(10);
     $article->getName()->willReturn("test article");
     $article->getPublicationId()->willReturn(2);
     $article->getLanguageId()->willReturn(1);
     $article->getIssueId()->willReturn(20);
     $article->getSectionId()->willReturn(30);
     $em->getReference('Newscoop\\Entity\\Language', 1)->willReturn($language);
     $language->getCode()->willReturn('en');
     $this->beConstructedWith($dispatcher, $em);
 }
All Usage Examples Of Newscoop\Entity\Article::getSectionId