public static function getParam($dataType, $name, $description)
    {
        if (strlen($name) == 0) {
            throw new Exception('A parameter must have a name!');
        }

        if ($name[0] == '$') {
            $name = substr($name, 1);
        }
        if ($dataType == 'long') {
            $dataType = 'int';
        } elseif ($dataType == 'double') {
            $dataType = 'float';
        }

        return new PhpDocElement('param', $dataType, $name, $description);
    }
public static function getParam($dataType, $name, $description)
    {
        if (strlen($name) == 0) {
            throw new Exception('A parameter must have a name!');
        }

        if ($name[0] == '$') {
            $name = substr($name, 1);
        }
        if ($dataType == 'long') {
            $dataType = 'int';
        } elseif ($dataType == 'double') {
            $dataType = 'float';
        }

        return new PhpDocElement('param', $dataType, $name, $description);
    }
public static function getParam ( $ dataType , $ name , $ description ) { if ( strlen ( $ name ) == 0 ) { throw new Exception ( 'A parameter must have a name!' ) ; } if ( $ name [ 0 ] == '$' ) { $ name = substr ( $ name , 1 ) ; } if ( $ dataType == 'long' ) { $ dataType = 'int' ; } elseif ( $ dataType == 'double' ) { $ dataType = 'float' ; } return new PhpDocElement ( 'param' , $ dataType , $ name , $ description ) ; }
Creates a param element

@param string $dataType The name of the datatype of the variable
@param string $name The name of the variable
@param string $description

@throws Exception Throws exception if no name is supplied

@return PhpDocElement The created element
Creates a param element