private function getConstants()
    {
        if (empty($this->constants)) {
            try {
                $reflection      = new \ReflectionClass($this->getClassName());
                $this->constants = $reflection->getConstants();
            } catch (\ReflectionException $e) {
                $this->constants = [];
            }
        }

        return $this->constants;
    }
private function getConstants()
    {
        if (empty($this->constants)) {
            try {
                $reflection      = new \ReflectionClass($this->getClassName());
                $this->constants = $reflection->getConstants();
            } catch (\ReflectionException $e) {
                $this->constants = [];
            }
        }

        return $this->constants;
    }
private function getConstants ( ) { if ( empty ( $ this -> constants ) ) { try { $ reflection = new \ ReflectionClass ( $ this -> getClassName ( ) ) ; $ this -> constants = $ reflection -> getConstants ( ) ; } catch ( \ ReflectionException $ e ) { $ this -> constants = [ ] ; } } return $ this -> constants ; }
Returns list of the all available constants of the current class

@return array
Returns list of the all available constants of the current class