public function getValue() {
        $type = (string) $this->element->attributes()->type;
        $type = (empty($type)) ? 'string' : $type;
        $value = (string) $this->element->attributes()->value;

        $casterClassName = $this->resolveCasterClassName($type);

        /** @type \BuildR\TestTools\Caster\CasterInterface $casterObject */
        $casterObject = new $casterClassName($value);
        return $casterObject->cast();
    }
public function getValue() {
        $type = (string) $this->element->attributes()->type;
        $type = (empty($type)) ? 'string' : $type;
        $value = (string) $this->element->attributes()->value;

        $casterClassName = $this->resolveCasterClassName($type);

        /** @type \BuildR\TestTools\Caster\CasterInterface $casterObject */
        $casterObject = new $casterClassName($value);
        return $casterObject->cast();
    }
public function getValue ( ) { $ type = ( string ) $ this -> element -> attributes ( ) -> type ; $ type = ( empty ( $ type ) ) ? 'string' : $ type ; $ value = ( string ) $ this -> element -> attributes ( ) -> value ; $ casterClassName = $ this -> resolveCasterClassName ( $ type ) ; /** @type \BuildR\TestTools\Caster\CasterInterface $casterObject */ $ casterObject = new $ casterClassName ( $ value ) ; return $ casterObject -> cast ( ) ; }
Post-processing the node value by additionally specified type
declaration. If no type is defined, values returned as string.

@return bool|float|int|string
Post - processing the node value by additionally specified type declaration . If no type is defined values returned as string .