当前位置: 首页>>代码示例>>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;未经允许,请勿转载。