示例#1
0
 /**
  * Delete UserApi from User
  *
  * @param  UserApi $api
  *
  * @return User
  */
 public function removeApiKey(UserApi $api)
 {
     $this->apiKeys->removeElement($api);
     return $this;
 }
示例#2
0
文件: User.php 项目: eltrino/platform
 /**
  * Delete UserApi from User
  *
  * @param UserApi $api
  *
  * @return User
  */
 public function removeApiKey(UserApi $api)
 {
     if ($this->apiKeys->contains($api)) {
         $this->apiKeys->removeElement($api);
     }
     return $this;
 }