當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Service::getName方法代碼示例

本文整理匯總了PHP中Service::getName方法的典型用法代碼示例。如果您正苦於以下問題:PHP Service::getName方法的具體用法?PHP Service::getName怎麽用?PHP Service::getName使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Service的用法示例。


在下文中一共展示了Service::getName方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: testConstructInitialisesAllTheFields

 public function testConstructInitialisesAllTheFields()
 {
     $nameMock = uniqid();
     $repositoryMock = uniqid();
     $tagMock = uniqid();
     $configMock = array('test' => uniqid());
     $serviceMock = new Service($nameMock, $repositoryMock, $tagMock, $configMock);
     $this->assertSame($nameMock, $serviceMock->getName());
     $this->assertSame($repositoryMock, $serviceMock->getRepository());
     $this->assertSame($tagMock, $serviceMock->getTag());
     $this->assertSame($configMock, $serviceMock->getConfig());
     return $serviceMock;
 }
開發者ID:Chris7,項目名稱:JoliCi,代碼行數:13,代碼來源:ServiceTest.php

示例2: register

 public function register(Service $service)
 {
     $this->services[$service->getName()] = $service;
     return $this;
 }
開發者ID:pscheit,項目名稱:psc-cms,代碼行數:5,代碼來源:Handler.php

示例3: getListName

 public function getListName()
 {
     $names = Service::getName();
     return Response::json($names);
 }
開發者ID:EricBui0512,項目名稱:FYP,代碼行數:5,代碼來源:SiteController.php

示例4: requires

 public function requires(Service $dependenceService)
 {
     $this->_dependencies[$dependenceService->getName()] = $dependenceService;
     return $this;
 }
開發者ID:aricci95,項目名稱:metallink,代碼行數:5,代碼來源:Service.php

示例5: createActionResult

function createActionResult(Service $service, Workflows $w, $command, $commandQuery = '')
{
    if (strlen($commandQuery) === 0 || strpos($command, $commandQuery) !== false) {
        $w->result('', "{$service->getName()} {$command}", $command, ucfirst($command) . " {$service->getName()} service", "assets/{$command}.png", 'yes', "{$service->getName()} > {$command}");
    }
}
開發者ID:Heymdall,項目名稱:launch-workflow,代碼行數:6,代碼來源:filter.php


注:本文中的Service::getName方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。