Newscoop\Entity\Article::getPublicationId PHP Метод

getPublicationId() публичный Метод

Get publication id.
public getPublicationId ( ) : integer
Результат integer
    public function getPublicationId()
    {
        return $this->publication ? $this->publication->getId() : null;
    }

Usage Example

Пример #1
0
 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::getPublicationId