\Common

Class Common

The Common class for 【Samples/*.php】 used to obtain OssClient instance and other common functions

Summary

Methods
Properties
Constants
getOssClient()
getBucketName()
createBucket()
println()
No public properties found
endpoint
accessKeyId
accessKeySecret
bucket
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

endpoint

endpoint = \Config::OSS_ENDPOINT

accessKeyId

accessKeyId = \Config::OSS_ACCESS_ID

accessKeySecret

accessKeySecret = \Config::OSS_ACCESS_KEY

bucket

bucket = \Config::OSS_TEST_BUCKET

Methods

getOssClient()

getOssClient() : \OssClient

Get an OSSClient instance according to config.

Returns

\OssClient —

An OssClient instance

getBucketName()

getBucketName() : mixed

Returns

mixed —

createBucket()

createBucket() : mixed

A tool function which creates a bucket and exists the process if there are exceptions

Returns

mixed —

println()

println(mixed  $message) : mixed

Parameters

mixed $message

Returns

mixed —