1 | <?php |
||
21 | trait AwsS3v2DriverCompatible |
||
22 | { |
||
23 | /** |
||
24 | * Khởi tạo AwsS3v2 adapter. |
||
25 | * |
||
26 | * @return \League\Flysystem\AdapterInterface |
||
27 | */ |
||
28 | protected function createFilesystemAdapter(): AdapterInterface |
||
46 | |||
47 | /** |
||
48 | * Khởi tạo Aws S3 client. |
||
49 | * |
||
50 | * @return \Aws\S3\S3Client |
||
51 | */ |
||
52 | protected function createS3Client(): S3Client |
||
62 | |||
63 | /** |
||
64 | * Khởi tạo cache. |
||
65 | * |
||
66 | * @return \League\Flysystem\Cached\CacheInterface |
||
67 | */ |
||
68 | protected function createCacheStore(): CacheInterface |
||
82 | |||
83 | /** |
||
84 | * Phương thức trừu tượng trả về đường dẫn endpoint. |
||
85 | * |
||
86 | * @return string |
||
87 | */ |
||
88 | abstract protected function getEndPoint(): string; |
||
89 | } |
||
90 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: