class SessionHandle { private $_is_handle = false; public function start() { if ($this->_is_handle === false) { $this->_is_handle = true; // ... 执行具体的handle } return $this; } }