Class Diagram
2016-07-22 15:38:43 0 举报
类图(Class Diagram)是一种在面向对象编程中使用的图表,它用于描述系统中的类、接口以及它们之间的关系。类图中展示了类的结构、属性和方法,并显示了它们之间的继承、实现和关联关系。通过类图,开发人员可以更好地理解系统的设计和功能,有助于代码的编写和维护。类图的主要元素包括类、接口、属性、方法、继承、实现和关联关系等。在UML规范中,类图是一种静态结构图,用于表示系统的静态结构,与时序图、协作图等动态行为图相对应。
作者其他创作
大纲/内容
ProcessableHandlerInterface
+ pushProcessor(callback:callable): HandlerInterface+ popProcessor(): callable
DeduplicationHandler
# deduplicationStore:# deduplicationLevel:# time:- gc:
+ __construct(handler:HandlerInterface)+ flush()+ isDuplicate(record:array)+ collectLogs()- appendRecord(record:array)
FormattableHandlerTrait
# formatter
+setFormatter(formatter:FormatterInterface): HandlerInterface+ getFormatter(): FormatterInterface+ getDefaultFormatter(): FormatterInterface
ChannelLevelActivationStrategy
- defaultActionLevel:- channelToActionLevel:
NormalizerFormatter
# dateFormat:
LogmaticFormatter
# hostname:# appname:
+ setHostname(hostname:string)+ setAppname(appname:string)+ format(record:array)
Handler
+ handleBatch(records:array)+ close()+ __destruct()+ __sleep()
FormatterInterface
+ format(record:array)+ formatBatch(records:array)
ActivationStrategyInterface
+ isHandlerActivated(record:array)
ProcessableHandlerTrait
#processors:
+ pushProcessor(callback:callabe): HandlerInterface+ popProcessor(): callable# processRecord(record:array)
StreamHandler
# stream:# url:- errorMessage:# filePermission:# useLocking:- dirCreated:
+ getStream()+ getUrl()
BufferHandler
# handler:# bufferSize:# bufferLimit:# flushOnOverflow:# buffer:# initialized:
+ __construct(handler:HandlerInterface)+ handle(record:array): bool+ flush()+ close()+ clear()
FingersCrossedHandler
# handler:# activationStrategy:# buffering:#bufferSize:#passthruLevel:
HandlerInterface
+ isHandling(record:array): bool+ handle(record:array): bool+ handleBatch(records:array)+ close()
Logger
# levels:# name:# handlers:# processors:# microsecondTimestamps:# timezone:
ErrorLevelActivationStrategy
- actionLevel:
+ __construct(actionLevel:)+ isHandlerActivated(record:array)
FormattableHandlerInterface
+setFormatter(formatter:FormatterInterface)- operation2(params)- operation3()
ChromePHPFormatter
- logLevels:
AbstractSyslogHandler
# logLevels:#facility:#facilities
AbstractHandler
# level:# bubble:
AbstractProcessingHandler
+ handle(record:array): bool+ write(record:array)
JsonFormatter
# batchMode:# appendNewline:# includeStacktraces:
+ getBatchMode()+ isAppendingNewlines()+ format(record:array)
0 条评论
下一页