|  |  | @ -83,17 +83,17 @@ class AutoTimestamp extends Behavior | 
			
		
	
		
		
			
				
					
					|  |  |  | 	 */ |  |  |  | 	 */ | 
			
		
	
		
		
			
				
					
					|  |  |  | 	public function updateTimestamp($attributes) |  |  |  | 	public function updateTimestamp($attributes) | 
			
		
	
		
		
			
				
					
					|  |  |  | 	{ |  |  |  | 	{ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		$timestamp = $this->evaluateTimestamp(); | 
			
		
	
		
		
			
				
					
					|  |  |  | 		foreach ($attributes as $attribute) { |  |  |  | 		foreach ($attributes as $attribute) { | 
			
		
	
		
		
			
				
					
					|  |  |  | 			$this->owner->$attribute = $this->evaluateTimestamp($attribute); |  |  |  | 			$this->owner->$attribute = $timestamp; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 		} |  |  |  | 		} | 
			
		
	
		
		
			
				
					
					|  |  |  | 	} |  |  |  | 	} | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 	/** |  |  |  | 	/** | 
			
		
	
		
		
			
				
					
					|  |  |  | 	 * Gets the appropriate timestamp for the specified attribute. |  |  |  | 	 * Gets the current timestamp. | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 	 * @param string $attribute attribute name |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 	 * @return mixed the timestamp value |  |  |  | 	 * @return mixed the timestamp value | 
			
		
	
		
		
			
				
					
					|  |  |  | 	 */ |  |  |  | 	 */ | 
			
		
	
		
		
			
				
					
					|  |  |  | 	protected function evaluateTimestamp($attribute) |  |  |  | 	protected function evaluateTimestamp() | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 	{ |  |  |  | 	{ | 
			
		
	
		
		
			
				
					
					|  |  |  | 		if ($this->timestamp instanceof Expression) { |  |  |  | 		if ($this->timestamp instanceof Expression) { | 
			
		
	
		
		
			
				
					
					|  |  |  | 			return $this->timestamp; |  |  |  | 			return $this->timestamp; | 
			
		
	
	
		
		
			
				
					|  |  | 
 |