StockLogger

package

Default

Methods

__construct

__construct() 

addLogEntry

addLogEntry(\IdType $productId, \DecimalType $newStock, \NonEmptyStringType $eventDescription, \StringType $productVariation = null) 

Arguments

$productId

\IdType

$newStock

\DecimalType

$eventDescription

\NonEmptyStringType

$productVariation

\StringType

getMaxLogFileSize

getMaxLogFileSize() : integer

Response

integer

initLogFile

initLogFile() 

setLogFileName

setLogFileName(\NonEmptyStringType $fileName) 

Arguments

setMaxLogFileSize

setMaxLogFileSize(integer $maxLogFileSize) 

Arguments

$maxLogFileSize

integer

Constants

DEFAULT_MAX_LOG_FILE_SIZE

DEFAULT_MAX_LOG_FILE_SIZE

Properties

logFileName

logFileName : string
var

Type(s)

string

baseLogFileName

baseLogFileName : string
var

Type(s)

string

maxLogFileSize

maxLogFileSize : integer
var

Type(s)

integer

productReadService

productReadService : \ProductReadService
var

Type(s)

\ProductReadService