public static function constructFromArray($props) {
		if (!is_array($props)) {
			$props = array('type' => $props);
		}

		$defaults = array_fill_keys(self::$properties, null);
		$props    = array_merge($defaults, $props);
		extract($props);

		return new Accidental($type, $size, $parentheses, $bracket, $editorial, $courtesy);

	}
public static function constructFromArray($props) {
		if (!is_array($props)) {
			$props = array('type' => $props);
		}

		$defaults = array_fill_keys(self::$properties, null);
		$props    = array_merge($defaults, $props);
		extract($props);

		return new Accidental($type, $size, $parentheses, $bracket, $editorial, $courtesy);

	}
public static function constructFromArray ( $ props ) { if ( ! is_array ( $ props ) ) { $ props = array ( 'type' => $ props ) ; } $ defaults = array_fill_keys ( self :: $ properties , null ) ; $ props = array_merge ( $ defaults , $ props ) ; extract ( $ props ) ; return new Accidental ( $ type , $ size , $ parentheses , $ bracket , $ editorial , $ courtesy ) ; }
constructs the object from an array serialization

@param  array $props the array of properties
@return Accidental the Accidental object.
constructs the object from an array serialization