1<?php 2 3// Protocol Buffers - Google's data interchange format 4// Copyright 2017 Google Inc. All rights reserved. 5// 6// Use of this source code is governed by a BSD-style 7// license that can be found in the LICENSE file or at 8// https://developers.google.com/open-source/licenses/bsd 9 10namespace Google\Protobuf\Internal; 11 12trait GetPublicDescriptorTrait 13{ 14 private function getPublicDescriptor($desc) 15 { 16 return is_null($desc) ? null : $desc->getPublicDescriptor(); 17 } 18} 19