*/ class ScopeEntity implements ScopeEntityInterface { use EntityTrait; // 没有 Trait 实现这个方法,需要自行实现 // oauth2-server 项目的测试代码的实现例子 public function jsonSerialize() { return $this->getIdentifier(); } }