/**
  * @param string $publicationId
  *
  * @throws InvalidPublicationIdException
  * @SuppressWarnings(PHPMD.LongVariable)
  */
 public function setPublicationId($publicationId)
 {
     $publicationIdValidator = new PublicationIdValidator($publicationId);
     if (!$publicationIdValidator->isValid()) {
         throw new InvalidPublicationIdException();
     }
     $this->publicationId = $publicationId;
 }
 /**
  * @dataProvider publicationIdProvider
  */
 public function testValidator($data, $expected)
 {
     $validator = new PublicationIdValidator($data);
     $this->assertEquals($expected, $validator->isValid());
 }