Google\Cloud\PubSub\Topic::name PHP 메소드

name() 공개 메소드

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

Usage Example

예제 #1
0
 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');
 }