Overview

Namespaces

  • NGS
    • Client
      • Exception
    • Converter
    • Patterns
  • PHP

Classes

  • BigDecimal
  • BigInt
  • ByteStream
  • LocalDate
  • Location
  • Money
  • Name
  • Point
  • S3
  • Timestamp
  • Utils
  • UUID
  • Overview
  • Namespace
  • Class
  • Tree

Class Name

Helper functions for converting PHP class names to DSL names

Abstract
Namespace: NGS
Located at Name.php
Methods summary
public static string
# full( string|object $name )

Gets DSL name from class or object instance

Gets DSL name from class or object instance

Parameters

$name
string|object
$name Fully qualified class name or object instance

Returns

string
DSL name

Throws

InvalidArgumentException
If $name is not a string/object
public static string
# base( string|object $name )

Gets DSL module name from class or object instance

Gets DSL module name from class or object instance

Parameters

$name
string|object
$name Fully qualified class name or object instance

Returns

string
DSL name

Throws

InvalidArgumentException
If $name is not a string/object
public static string
# toClass( string|object $name )

Converts DSL name to class name

Converts DSL name to class name

Parameters

$name
string|object
$name Fully qualified class name or object instance

Returns

string
DSL name

Throws

InvalidArgumentException
If $name is not a string/object
public static string
# parent( string|object $name )

Gets all but last name

Gets all but last name

Parameters

$name
string|object
$name Fully qualified class name or object instance

Returns

string
DSL name

Throws

InvalidArgumentException
If $name is not a string/object
API documentation generated by ApiGen 2.8.0