Logo
Explore Help
Sign In
Cadoles/BeSimpleSoap
21
0
Fork 0
You've already forked BeSimpleSoap
Code Issues 1 Pull Requests Projects Releases Wiki Activity
BeSimpleSoap/ServiceDefinition/Strategy/PropertyComplexType.php

18 lines
399 B
PHP
Raw Normal View History

New definition of complex type The exposure of complex type properties was done only with public property. Now you can expose properties and public methods. Before: In a complex type: /** * @var string */ public $var; After: In a complex type: use BeSimple\SoapBundle\ServiceDefinition\Annotation as Soap; /** * @Soap\PropertyComplexType("string", name="var", nillable="true") */ public $username; private $email; /** * @Soap\MethodComplexType("string", name="email", nillable="true", setter="setEmail") */ public function getEmail() { return $this->email; } public function setEmail($email) { $this->email = $email; } name, nillable are optionnal. setter is optional and only available for MethodComplexType.
2011-07-23 20:06:42 +02:00
<?php
/*
* This file is part of the BeSimpleSoapBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace BeSimple\SoapBundle\ServiceDefinition\Strategy;
/**
* @author Francis Besset <francis.besset@gmail.com>
*/
class PropertyComplexType extends BaseComplexType
{
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.3 Page: 80ms Template: 3ms
English
Deutsch English Español Français Latviešu Nederlands Polski Português Русский 日本语 简体中文 繁體中文
Licenses API