Пример #1
0
 /**
  * Create
  * @param Portal $portal
  */
 public function createPortal(Portal $portal)
 {
     $result = json_decode($this->webClient->post(MediaSiloResourcePaths::PORTAL, $portal->toJson()));
     $portal->setId($result->id);
 }