src/Extension/ExtensionRegistry.php
public function findByNumber($className, $number)
    {
        $extendee = trim($className, '\\');

        if ( ! isset($this->extensions[$extendee][$number])) {
            return null;
        }

        return $this->extensions[$extendee][$number];
    }
public function findByNumber($className, $number)
    {
        $extendee = trim($className, '\\');

        if ( ! isset($this->extensions[$extendee][$number])) {
            return null;
        }

        return $this->extensions[$extendee][$number];
    }
public function findByNumber ( $ className , $ number ) { $ extendee = trim ( $ className , '\\' ) ; if ( ! isset ( $ this -> extensions [ $ extendee ] [ $ number ] ) ) { return null ; } return $ this -> extensions [ $ extendee ] [ $ number ] ; }
Find an extension by containing field number

@param string  $className
@param integer $number

@return \Protobuf\Extension\ExtensionField|null
Find an extension by containing field number