| 1 | <?php |
||
| 5 | abstract class Resource |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var \SevenShores\Hubspot\Http\Client |
||
| 9 | */ |
||
| 10 | protected $client; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Makin' a good ole resource |
||
| 14 | * |
||
| 15 | * @param \SevenShores\Hubspot\Http\Client $client |
||
| 16 | */ |
||
| 17 | function __construct($client) |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Convert a time, DateTime, or string to a millisecond timestamp. |
||
| 24 | * |
||
| 25 | * @param \DateTime|int|null $time |
||
| 26 | * @return int|null |
||
| 27 | */ |
||
| 28 | protected function timestamp($time) |
||
| 32 | } |
||
| 33 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.