本文整理匯總了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}");
}
}