Overview

Namespaces

  • Autarky
    • Config
      • Loaders
    • Console
    • Container
      • Exception
      • Factory
      • Proxy
    • Database
    • Errors
    • Events
    • Files
    • Http
    • Logging
    • Providers
    • Routing
      • Events
    • Testing
    • TwigTemplating
      • Extensions
    • Utils

Classes

  • AbstractArgument
  • ClassArgument
  • Definition
  • Factory
  • ScalarArgument

Interfaces

  • ArgumentInterface
  • FactoryInterface
  • Overview
  • Namespace
  • Class

Class ScalarArgument

Factory argument that is a scalar value.

Autarky\Container\Factory\AbstractArgument
Extended by Autarky\Container\Factory\ScalarArgument implements Autarky\Container\Factory\ArgumentInterface
Namespace: Autarky\Container\Factory
Located at Factory/ScalarArgument.php
Methods summary
public
# __construct( integer $position, string $name, string $type, boolean $required = true, mixed $default = null )

Constructor.

Constructor.

Parameters

$position
$name
$type
$required
$default

Overrides

Autarky\Container\Factory\AbstractArgument::__construct()
public boolean
# isClass( )

Whether the argument is a class.

Whether the argument is a class.

Returns

boolean

Implementation of

Autarky\Container\Factory\ArgumentInterface::isClass()
public string
# getType( )

Get the argument's type.

Get the argument's type.

Returns

string
public mixed
# getDefault( )

Get the argument's default value, if it is not required.

Get the argument's default value, if it is not required.

Returns

mixed
Methods inherited from Autarky\Container\Factory\AbstractArgument
getName(), getPosition(), isOptional(), isRequired()
Constants summary
string TYPE_ARRAY
# 'array'
string TYPE_BOOL
# 'bool'
string TYPE_DOUBLE
# 'float'
string TYPE_FLOAT
# 'float'
string TYPE_INT
# 'int'
string TYPE_MIXED
# 'mixed'
string TYPE_OBJECT
# 'object'
string TYPE_RESOURCE
# 'resource'
string TYPE_STRING
# 'string'
Properties summary
protected string $type

The argument's type.

The argument's type.

#
protected mixed $default

The argument's default value, if it is not required.

The argument's default value, if it is not required.

#
Properties inherited from Autarky\Container\Factory\AbstractArgument
$name, $position, $required
Autarky Framework API documentation generated by ApiGen