|
<?php
|
|
|
|
namespace bin;
|
|
|
|
class Design
|
|
{
|
|
/**
|
|
* 对应设计模式名称
|
|
*
|
|
* @var string
|
|
*/
|
|
public string $designName;
|
|
/**
|
|
* 参考地址
|
|
*
|
|
* @var string
|
|
*/
|
|
public string $designRefUrl;
|
|
|
|
/**
|
|
* 统一返回错误信息
|
|
*
|
|
* @throws \Exception
|
|
*/
|
|
public function __get($name)
|
|
{
|
|
throw new \Exception("$name 未定义");
|
|
}
|
|
} |