コード例 #1
0
ファイル: Scope.php プロジェクト: quibax/php-oauth-client
 public function hasScope(Scope $scope)
 {
     foreach ($scope->getScopeAsArray() as $s) {
         if (!in_array($s, $this->scope)) {
             return false;
         }
     }
     return true;
 }
コード例 #2
0
 public function mergeWith(Scope $scope)
 {
     $this->_scope = $this->_normalizeScope(implode(" ", array_merge($this->_scope, $scope->getScopeAsArray())));
 }