Logging/src/LoggingClient.php
public function sinks(array $options = [])
    {
        $resultLimit = $this->pluck('resultLimit', $options, false);

        return new ItemIterator(
            new PageIterator(
                function (array $sink) {
                    return new Sink($this->connection, $sink['name'], $this->projectId, $sink);
                },
                [$this->connection, 'listSinks'],
                $options + ['parent' => $this->formattedProjectName],
                [
                    'itemsKey' => 'sinks',
                    'resultLimit' => $resultLimit
                ]
            )
        );
    }
public function sinks(array $options = [])
    {
        $resultLimit = $this->pluck('resultLimit', $options, false);

        return new ItemIterator(
            new PageIterator(
                function (array $sink) {
                    return new Sink($this->connection, $sink['name'], $this->projectId, $sink);
                },
                [$this->connection, 'listSinks'],
                $options + ['parent' => $this->formattedProjectName],
                [
                    'itemsKey' => 'sinks',
                    'resultLimit' => $resultLimit
                ]
            )
        );
    }
public function sinks ( array $ options = [ ] ) { $ resultLimit = $ this -> pluck ( 'resultLimit' , $ options , false ) ; return new ItemIterator ( new PageIterator ( function ( array $ sink ) { return new Sink ( $ this -> connection , $ sink [ 'name' ] , $ this -> projectId , $ sink ) ; } , [ $ this -> connection , 'listSinks' ] , $ options + [ 'parent' => $ this -> formattedProjectName ] , [ 'itemsKey' => 'sinks' , 'resultLimit' => $ resultLimit ] ) ) ; }
Fetches sinks associated with your project.

Example:
```
$sinks = $logging->sinks();

foreach ($sinks as $sink) {
echo $sink->name() . PHP_EOL;
}
```

@codingStandardsIgnoreStart
@see https://cloud.google.com/logging/docs/api/reference/rest/v2/projects.sinks/list projects.sinks list API documentation.
@codingStandardsIgnoreEnd

@param array $options [optional] {
Configuration options.

@type int $pageSize The maximum number of results to return per
request.
@type int $resultLimit Limit the number of results returned in total.
**Defaults to** `0` (return all results).
@type string $pageToken A previously-returned page token used to
resume the loading of results from a specific point.
}
@return ItemIterator<Sink>
Fetches sinks associated with your project .