Class Push
	
	Send Push notification to mobile devices
	 
	
	
	Methods summary
	
		| 
			 public 
			
			
			 | 
		#
		__construct( array $data = array(), array $options = array() )
			Initialize a Push notification 
			Initialize a Push notification Parameters
					$dataNotification data$optionsNotification optionsSee
						self::setData, self::setOption
 | 
	
		| 
			 public 
			LeanCloud\Push | 
		#
		setData( string $key, mixed $val )
			Set notification data attributes 
			Set notification data attributes Available attributes please see
https://leancloud.cn/docs/push_guide.html#%E6%8E%A8%E9%80%81%E6%B6%88%E6%81%AF Parameters
					$keyAttribute key$valAttribute valueReturns | 
	
		| 
			 public 
			LeanCloud\Push | 
		#
		setOption( string $key, mixed $val )
			Set general option for notificiation 
			Set general option for notificiation Available options please see
https://leancloud.cn/docs/push_guide.html#%E6%8E%A8%E9%80%81%E6%B6%88%E6%81%AF There are helper methods for setting most of options, use those
if possible. Use this when no helper present, e.g. to enable
"dev" environment in iOS: $push->setOption("prod", "dev");Parameters
					$keyOption key$valOption valueReturnsSee
						self::setWhere, self::setChannels, self::setPushTime ...
 | 
	
		| 
			 public 
			LeanCloud\Push | 
		#
		setChannels( array $channels )
			Set target channels Parameters
					$channelsList of channel namesReturnsSee
						self::setOption()
 | 
	
		| 
			 public 
			LeanCloud\Push | 
		#
		setWhere( LeanCloud\Query$query )
			Filter target devices by query 
			Filter target devices by query The query must be over _Installation table. Parameters
					$queryA query over _InstallationReturnsSee
						self::setOption()
 | 
	
		| 
			 public 
			LeanCloud\Push | 
		#
		setPushTime( DateTime $time )
			Schedule a time to send message 
			Schedule a time to send message Parameters
					$timeTime to send message to clientsReturnsSee
						self::setOption()
 | 
	
		| 
			 public 
			LeanCloud\Push | 
		#
		setExpirationInterval( integer $interval )
			Set expiration interval for message 
			Set expiration interval for message When client received message after the interval, it will not be
displayed to user. Parameters
					$intervalNumber of seconds (from now) to expire messageReturnsSee
						self::setOption()
 | 
	
		| 
			 public 
			LeanCloud\Push | 
		#
		setExpirationTime( DateTime $time )
			Set expiration time for message 
			Set expiration time for message When client received message after the specified time, it will
not be displayed to user. Parameters
					$timeTime to expire messageReturnsSee
						self::setOption()
 | 
	
		| 
			 public 
			LeanCloud\Push | 
		#
		setFlowControl( integer $flowControl )
			Enable smooth push for message 
			Enable smooth push for message Parameters
					$flowControlclients to push per second,
                        a value <1000 is equivalent to 1000.ReturnsSee
						self::setOption()
 | 
	
		| 
			 public 
			array
			
			 | 
		#
		encode( )
			Encode to JSON representation 
			Encode to JSON representation Returns
					array
				 | 
	
		| 
			 public 
			array
			
			 | 
		#
		send( )
			Send notification to LeanCloud 
			Send notification to LeanCloud Returns
					array
				 |