public function removeTypeFromRegion($type, $region)
    {
        if (array_key_exists($region, $this->matrix)) {
            array_walk(
                $this->matrix[ $region ],
                function ($value, $idx, $matrix) use ($type, $region) {
                    $class = explode('\\', $value);
                    $className = array_pop($class);
                    if ($className === $type) {
                        unset($matrix[ $region ][ $idx ]);
                    }
                },
                $this->matrix
            );
        }

        return $this;
    }
public function removeTypeFromRegion($type, $region)
    {
        if (array_key_exists($region, $this->matrix)) {
            array_walk(
                $this->matrix[ $region ],
                function ($value, $idx, $matrix) use ($type, $region) {
                    $class = explode('\\', $value);
                    $className = array_pop($class);
                    if ($className === $type) {
                        unset($matrix[ $region ][ $idx ]);
                    }
                },
                $this->matrix
            );
        }

        return $this;
    }
public function removeTypeFromRegion ( $ type , $ region ) { if ( array_key_exists ( $ region , $ this -> matrix ) ) { array_walk ( $ this -> matrix [ $ region ] , function ( $ value , $ idx , $ matrix ) use ( $ type , $ region ) { $ class = explode ( '\\' , $ value ) ; $ className = array_pop ( $ class ) ; if ( $ className === $ type ) { unset ( $ matrix [ $ region ] [ $ idx ] ) ; } } , $ this -> matrix ) ; } return $ this ; }
Remove a type from a region

@param string $type
@param string $region

@return $this
Remove a type from a region