public function getDefaultValue()
    {
        $default = $this->_default;

        if ($default && !$this->isScalar()) {
            $default = $default instanceof AnDomainAttributeInterface ? clone $default :
                        AnDomainAttribute::getInstance($this->_type);
        }

        return $default;
    }
public function getDefaultValue()
    {
        $default = $this->_default;

        if ($default && !$this->isScalar()) {
            $default = $default instanceof AnDomainAttributeInterface ? clone $default :
                        AnDomainAttribute::getInstance($this->_type);
        }

        return $default;
    }
public function getDefaultValue ( ) { $ default = $ this -> _default ; if ( $ default && ! $ this -> isScalar ( ) ) { $ default = $ default instanceof AnDomainAttributeInterface ? clone $ default : AnDomainAttribute :: getInstance ( $ this -> _type ) ; } return $ default ; }
Clones the default value or create a new one if a type is given.

@return mixed
Clones the default value or create a new one if a type is given .