mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-04 14:46:19 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			57 lines
		
	
	
		
			1015 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			57 lines
		
	
	
		
			1015 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
/**
 | 
						|
 * @link http://www.yiiframework.com/
 | 
						|
 * @copyright Copyright (c) 2008 Yii Software LLC
 | 
						|
 * @license http://www.yiiframework.com/license/
 | 
						|
 */
 | 
						|
 | 
						|
namespace yii\authclient;
 | 
						|
 | 
						|
/**
 | 
						|
 * ClientInterface declares basic interface all Auth clients should follow.
 | 
						|
 *
 | 
						|
 * @author Paul Klimov <klimov.paul@gmail.com>
 | 
						|
 * @since 2.0
 | 
						|
 */
 | 
						|
interface ClientInterface
 | 
						|
{
 | 
						|
	/**
 | 
						|
	 * @param string $id service id.
 | 
						|
	 */
 | 
						|
	public function setId($id);
 | 
						|
 | 
						|
	/**
 | 
						|
	 * @return string service id
 | 
						|
	 */
 | 
						|
	public function getId();
 | 
						|
 | 
						|
	/**
 | 
						|
	 * @return string service name.
 | 
						|
	 */
 | 
						|
	public function getName();
 | 
						|
 | 
						|
	/**
 | 
						|
	 * @param string $name service name.
 | 
						|
	 */
 | 
						|
	public function setName($name);
 | 
						|
 | 
						|
	/**
 | 
						|
	 * @return string service title.
 | 
						|
	 */
 | 
						|
	public function getTitle();
 | 
						|
 | 
						|
	/**
 | 
						|
	 * @param string $title service title.
 | 
						|
	 */
 | 
						|
	public function setTitle($title);
 | 
						|
 | 
						|
	/**
 | 
						|
	 * @return array list of user attributes
 | 
						|
	 */
 | 
						|
	public function getUserAttributes();
 | 
						|
 | 
						|
	/**
 | 
						|
	 * @return array view options in format: optionName => optionValue
 | 
						|
	 */
 | 
						|
	public function getViewOptions();
 | 
						|
} |