Sokil\Mongo\DocumentWithAfterConstructEvent::beforeConstruct PHP Метод

beforeConstruct() публичный Метод

public beforeConstruct ( )
    public function beforeConstruct()
    {
        $that = $this;
        $this->onAfterConstruct(function () use($that) {
            $that->status = true;
        });
    }
DocumentWithAfterConstructEvent