VIPnytt/RobotsTxtParser

View on GitHub
docs/methods/CommentClient.md

Summary

Maintainability
Test Coverage
# Class CommentClient
```php
@package vipnytt\RobotsTxtParser\Client\Directives
```

### Directives:
- [Comment](../Directives.md#comment)

## Public functions
- [export](#export)
- [get](#get)
- [__destruct](#__destruct)

### export
```php
@return array
```
Export an array of comments for the matching user-agent.

### get
```php
@return string[]
```
Get any comments for the matching user-agent. Ignoring the `*` user-agent in case of spam.

### __destruct
If there exists any comments for the matching user-agent, witch has not been fetched, AND the matching user-agent IS NOT `*`, every comment will trigger as E_USER_NOTICE.