PubSub/src/Topic.php
public function iam()
    {
        if (!$this->iam) {
            $iamConnection = new IamTopic($this->connection);
            $this->iam = new Iam($iamConnection, $this->name);
        }

        return $this->iam;
    }
public function iam()
    {
        if (!$this->iam) {
            $iamConnection = new IamTopic($this->connection);
            $this->iam = new Iam($iamConnection, $this->name);
        }

        return $this->iam;
    }
public function iam ( ) { if ( ! $ this -> iam ) { $ iamConnection = new IamTopic ( $ this -> connection ) ; $ this -> iam = new Iam ( $ iamConnection , $ this -> name ) ; } return $ this -> iam ; }
Manage the IAM policy for the current Topic.

Example:
```
$iam = $topic->iam();
```

@codingStandardsIgnoreStart
@see https://cloud.google.com/pubsub/access_control PubSub Access Control Documentation
@see https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.topics/getIamPolicy Get Topic IAM Policy
@see https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.topics/setIamPolicy Set Topic IAM Policy
@see https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.topics/testIamPermissions Test Topic Permissions
@codingStandardsIgnoreEnd

@return Iam
Manage the IAM policy for the current Topic .