Google\Cloud\PubSub\Topic::name PHP Method

name() public method

Example: echo $topic->name();
public name ( ) : string
return string
    public function name()
    {
        return $this->name;
    }

Usage Example

コード例 #1
0
ファイル: TopicTest.php プロジェクト: Radiergummi/anacronism
 public function testName()
 {
     $topic = new Topic($this->connection->reveal(), 'test-topic-name', 'my-project');
     $this->assertEquals($topic->name(), 'projects/my-project/topics/test-topic-name');
 }