public function requestCommands(): array
    {
        if ($this->_requestCommands === null) {
            $reflection = new ReflectionClass($this);

            $commands = [];
            foreach ($reflection->getConstants() as $name => $value) {
                if (strpos($name, 'RC_') === 0) {
                    $commands[] = $value;
                }
            }

            return $this->_requestCommands = $commands;
        } else {
            return $this->_requestCommands;
        }
    }
public function requestCommands(): array
    {
        if ($this->_requestCommands === null) {
            $reflection = new ReflectionClass($this);

            $commands = [];
            foreach ($reflection->getConstants() as $name => $value) {
                if (strpos($name, 'RC_') === 0) {
                    $commands[] = $value;
                }
            }

            return $this->_requestCommands = $commands;
        } else {
            return $this->_requestCommands;
        }
    }
public function requestCommands ( ) : array { if ( $ this -> _requestCommands === null ) { $ reflection = new ReflectionClass ( $ this ) ; $ commands = [ ] ; foreach ( $ reflection -> getConstants ( ) as $ name => $ value ) { if ( strpos ( $ name , 'RC_' ) === 0 ) { $ commands [ ] = $ value ; } } return $ this -> _requestCommands = $ commands ; } else { return $ this -> _requestCommands ; } }
This method automatically detect request commands supported via constants name prefix with `RC_`.
`RC` meaning Request Command.

@return array An array constants value have name prefix with `RC_`
@throws \ReflectionException
This method automatically detect request commands supported via constants name prefix with RC_ . RC meaning Request Command .