本文整理汇总了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;
}
示例2: register
public function register(Service $service)
{
$this->services[$service->getName()] = $service;
return $this;
}
示例3: getListName
public function getListName()
{
$names = Service::getName();
return Response::json($names);
}
示例4: requires
public function requires(Service $dependenceService)
{
$this->_dependencies[$dependenceService->getName()] = $dependenceService;
return $this;
}
示例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}");
}
}