protected function determineNameAndVariant()
    {
        $reflectionClass = new \ReflectionClass($this);
        $componentName   = preg_replace('/Component$/', '', $reflectionClass->getShortName());
        list($this->basename, $variant) = preg_split('/_+/', $componentName, 2);
        $this->name    = self::expandComponentName($this->basename);
        $this->variant = self::expandComponentName($variant);
    }
protected function determineNameAndVariant()
    {
        $reflectionClass = new \ReflectionClass($this);
        $componentName   = preg_replace('/Component$/', '', $reflectionClass->getShortName());
        list($this->basename, $variant) = preg_split('/_+/', $componentName, 2);
        $this->name    = self::expandComponentName($this->basename);
        $this->variant = self::expandComponentName($variant);
    }
protected function determineNameAndVariant ( ) { $ reflectionClass = new \ ReflectionClass ( $ this ) ; $ componentName = preg_replace ( '/Component$/' , '' , $ reflectionClass -> getShortName ( ) ) ; list ( $ this -> basename , $ variant ) = preg_split ( '/_+/' , $ componentName , 2 ) ; $ this -> name = self :: expandComponentName ( $ this -> basename ) ; $ this -> variant = self :: expandComponentName ( $ variant ) ; }
Determine the component name and variant
Determine the component name and variant