NAME

Scalar - scalar component property


SYNOPSIS

        C<$property = new Podius::Property::Scalar;>
        Supposed to be used in L<Podius::Component> and L<Podius::Property>
        module trees only.


DESCRIPTION

This module implements general scalar component property. It can be subclassed to add specific meaning to stored scalar field.


REQUIREMENTS

the Exception manpage, the Podius::Property manpage.


CONSTRUCTORS

new

description
Class constructor.

parameters
Class name and optional initializing scalar (default is undef).

returns
New formed property reference.

new_from_serialized

description
Class constructor. Used for deserialization.

parameters
Class name (like all constructors) and string, representing the property. Additional parameters are property static parameters (if any).

returns
New formed property reference.


METHODS

serialize

description
Used for serialization.

returns
String, representing the property, from which the property can be restored later by new_from_serialized constructor. The scalar.

access

parameters
Accessor: none.

Modifier: property value to set. undef means unset the value.

returns
Property value. undef means no property value is set.