src/Mouf/Reflection/MoufReflectionProperty.php
public function getDefault() {
    	if ($this->isPublic() && !$this->isStatic() && $this->refClass->isAbstract() == false) {	    		 
	  		$className = $this->refClass->getName();
	  		// TODO: find a way to get default value for abstract properties.
	  		// TODO: optimize this: we should not have to create one new instance for every property....
	  		/*$instance = new $className();
			$property = $this->getName();
	    	return $instance->$property;*/
	  		
	  		// In some cases, the call to getDefaultProperties can log NOTICES
	  		// in particular if an undefined constant is used as default value.
	  		ob_start();
	  		$defaultProperties = $this->refClass->getDefaultProperties();
	  		$possibleError = ob_get_clean();
			if ($possibleError) {
				throw new \Exception($possibleError);	
			}
	  		return $defaultProperties[$this->getName()];
    	} else {
    		return null;
    	}
    }
public function getDefault() {
    	if ($this->isPublic() && !$this->isStatic() && $this->refClass->isAbstract() == false) {	    		 
	  		$className = $this->refClass->getName();
	  		// TODO: find a way to get default value for abstract properties.
	  		// TODO: optimize this: we should not have to create one new instance for every property....
	  		/*$instance = new $className();
			$property = $this->getName();
	    	return $instance->$property;*/
	  		
	  		// In some cases, the call to getDefaultProperties can log NOTICES
	  		// in particular if an undefined constant is used as default value.
	  		ob_start();
	  		$defaultProperties = $this->refClass->getDefaultProperties();
	  		$possibleError = ob_get_clean();
			if ($possibleError) {
				throw new \Exception($possibleError);	
			}
	  		return $defaultProperties[$this->getName()];
    	} else {
    		return null;
    	}
    }
public function getDefault ( ) { if ( $ this -> isPublic ( ) && ! $ this -> isStatic ( ) && $ this -> refClass -> isAbstract ( ) == false ) { $ className = $ this -> refClass -> getName ( ) ; // TODO: find a way to get default value for abstract properties.
 // TODO: optimize this: we should not have to create one new instance for every property....
 /*$instance = new $className();
			$property = $this->getName();
	    	return $instance->$property;*/ // In some cases, the call to getDefaultProperties can log NOTICES
 // in particular if an undefined constant is used as default value.
 ob_start ( ) ; $ defaultProperties = $ this -> refClass -> getDefaultProperties ( ) ; $ possibleError = ob_get_clean ( ) ; if ( $ possibleError ) { throw new \ Exception ( $ possibleError ) ; } return $ defaultProperties [ $ this -> getName ( ) ] ; } else { return null ; } }
Returns the default value

@return mixed
Returns the default value