Newscoop\Entity\Output::getName PHP Method

getName() public method

Provides the name of the theme resource, must be a user frendly name used for displaying it on the UI.
public getName ( ) : string
return string The name of the theme resource.
    public function getName()
    {
        return $this->name;
    }

Usage Example

 public function let(IssueServiceInterface $issueService, Issue $issue, CacheService $cacheService, PublicationService $publicationService, Publication $publication, EntityManager $em, Registry $doctrine, EntityRepository $repository, Output $output, OutputSettingsIssue $issueOutput)
 {
     $issueService->getIssue()->willReturn($issue);
     $publicationService->getPublication()->willReturn($publication);
     $doctrine->getManager()->willReturn($em);
     $em->getRepository(Argument::exact('Newscoop\\Entity\\Output'))->willReturn($repository);
     $repository->findBy(array('name' => 'Web'))->willReturn(array($output));
     $em->getRepository(Argument::exact('Newscoop\\Entity\\Output\\OutputSettingsIssue'))->willReturn($repository);
     $repository->findBy(array('issue' => 1, 'output' => 1))->willReturn(array($issueOutput));
     $issue->getId()->willReturn(1);
     $issue->getNumber()->willReturn(10);
     $issue->getName()->willReturn("May 2014");
     $issue->getShortName()->willReturn("may2014");
     $issue->getLanguageId()->willReturn(1);
     $output->getId()->willReturn(1);
     $output->getName()->willReturn('Web');
     $this->beConstructedWith($issueService, $cacheService, $publicationService, $em);
 }
All Usage Examples Of Newscoop\Entity\Output::getName