Opis\Closure\SerializableClosure::enterContext PHP 메소드

enterContext() 공개 정적인 메소드

Increments the contex lock counter or creates a new context if none exist
public static enterContext ( )
    public static function enterContext()
    {
        if (static::$context === null) {
            static::$context = new ClosureContext();
        }
        static::$context->locks++;
    }

Usage Example

예제 #1
0
 public function serialize()
 {
     SerializableClosure::enterContext();
     $object = $this->mapFunction1($this->variables);
     SerializableClosure::exitContext();
     return serialize($object);
 }
All Usage Examples Of Opis\Closure\SerializableClosure::enterContext