Exemple #1
0
 /**
  * Change an ISO value into a locale formatted value, knowing it's property
  *
  * @param $property Reflection_Property
  * @param $value    string
  * @return string
  */
 public function propertyToLocale(Reflection_Property $property, $value = null)
 {
     if ($property instanceof Reflection_Property_Value && !isset($value)) {
         $value = $property->value();
     }
     return is_null($value) && $property->getAnnotation('null')->value ? $value : $this->toLocale($value, $property->getType());
 }