getNumber() public method

Get issue number
public getNumber ( ) : integer
return integer
Ejemplo n.º 1
0
 /**
  * @param Subscription $subscription
  * @param IssueEntity $issue
  */
 public function __construct(Subscription $subscription, IssueEntity $issue)
 {
     $this->subscription = $subscription;
     $this->subscription->addIssue($this);
     $this->issueNumber = $issue->getNumber();
     $this->issue = $issue;
     $this->noticeSent = 'N';
     $this->paidDays = 0;
 }
Ejemplo n.º 2
0
 public function it_resolves_issue_from_request_data(Request $request, Issue $issue, ParameterBag $attributes)
 {
     $request->getRequestUri()->willReturn('/en/may2014/60/test-article.htm');
     $issue->getId()->willReturn(1);
     $issue->getNumber()->willReturn(10);
     $issue->getName()->willReturn("May 2014");
     $issue->getShortName()->willReturn("may2014");
     $language = new Language();
     $language->setId(1);
     $language->setCode("en");
     $issue->getLanguage()->willReturn($language);
     $issue->getLanguageId()->willReturn("1");
     $request->attributes = $attributes;
     $this->issueResolver($request)->shouldReturn($issue);
     $this->getIssueMetadata()->shouldBeLike(array("id" => 1, "number" => 10, "name" => "May 2014", "shortName" => "may2014", "code_default_language" => "en", "id_default_language" => "1"));
 }