src/Composer/ComposerHydrationHandler.php
public function getMagicVariableValue($variable)
    {
        $base_path_name = basename(realpath("."));

        switch ($variable) {
            case self::MAGIC_VAR_BASENAME:
                return $base_path_name;
                break;

            case self::MAGIC_VAR_UCFIRST_BASENAME:
                return ucfirst($base_path_name);
                break;

            case self::MAGIC_VAR_UPPER_CAMEL_CASE_BASENAME:
                return $this->toUpperCamelCase($base_path_name);
                break;

            case self::MAGIC_VAR_LOWER_CAMEL_CASE_BASENAME:
                return $this->toLowerCamelCase($base_path_name);
                break;
        }

        return null;
    }
public function getMagicVariableValue($variable)
    {
        $base_path_name = basename(realpath("."));

        switch ($variable) {
            case self::MAGIC_VAR_BASENAME:
                return $base_path_name;
                break;

            case self::MAGIC_VAR_UCFIRST_BASENAME:
                return ucfirst($base_path_name);
                break;

            case self::MAGIC_VAR_UPPER_CAMEL_CASE_BASENAME:
                return $this->toUpperCamelCase($base_path_name);
                break;

            case self::MAGIC_VAR_LOWER_CAMEL_CASE_BASENAME:
                return $this->toLowerCamelCase($base_path_name);
                break;
        }

        return null;
    }
public function getMagicVariableValue ( $ variable ) { $ base_path_name = basename ( realpath ( "." ) ) ; switch ( $ variable ) { case self :: MAGIC_VAR_BASENAME : return $ base_path_name ; break ; case self :: MAGIC_VAR_UCFIRST_BASENAME : return ucfirst ( $ base_path_name ) ; break ; case self :: MAGIC_VAR_UPPER_CAMEL_CASE_BASENAME : return $ this -> toUpperCamelCase ( $ base_path_name ) ; break ; case self :: MAGIC_VAR_LOWER_CAMEL_CASE_BASENAME : return $ this -> toLowerCamelCase ( $ base_path_name ) ; break ; } return null ; }
Returns the magic value of a magic variable.

@return string
The magic value.
Returns the magic value of a magic variable .