BillysInterns /
hv-client
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * @author - Sumit |
||
| 4 | */ |
||
| 5 | |||
| 6 | namespace elevate\HVObjects\Generic; |
||
| 7 | |||
| 8 | use JMS\Serializer\Annotation\Type; |
||
| 9 | use JMS\Serializer\Annotation\XmlValue; |
||
| 10 | use JMS\Serializer\Annotation\SerializedName; |
||
| 11 | use JMS\Serializer\Annotation\XmlMap; |
||
| 12 | use JMS\Serializer\Annotation\XmlRoot; |
||
| 13 | use JMS\Serializer\Annotation\XmlAttribute; |
||
| 14 | use JMS\Serializer\Annotation\XmlList; |
||
| 15 | use JMS\Serializer\Annotation\Groups; |
||
| 16 | use JMS\Serializer\Annotation\XmlKeyValuePairs; |
||
| 17 | use Doctrine\Common\Collections\ArrayCollection; |
||
| 18 | use JMS\Serializer\Annotation\AccessorOrder; |
||
| 19 | use elevate\HVObjects\Generic\Recurrent; |
||
| 20 | use elevate\HVObjects\Generic\Extension; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @XmlRoot("extension") |
||
| 24 | */ |
||
| 25 | class AppointmentExtension extends Extension |
||
| 26 | { |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @Type("elevate\HVObjects\Generic\Recurrent") |
||
| 30 | * @SerializedName("repeat") |
||
| 31 | */ |
||
| 32 | public $repeat; |
||
| 33 | |||
| 34 | function __construct($source, $repeat) |
||
|
0 ignored issues
–
show
|
|||
| 35 | { |
||
| 36 | $this->source = $source; |
||
| 37 | $this->repeat = $repeat; |
||
| 38 | } |
||
| 39 | |||
| 40 | |||
| 41 | } |
Generally, we recommend to declare visibility for all methods in your source code. This has the advantage of clearly communication to other developers, and also yourself, how this method should be consumed.
If you are not sure which visibility to choose, it is a good idea to start with the most restrictive visibility, and then raise visibility as needed, i.e. start with
private, and only raise it toprotectedif a sub-class needs to have access, orpublicif an external class needs access.