# Class Service

© 2019 Palo Alto Networks, Inc. All rights reserved.

Licensed under SCRIPT SOFTWARE AGREEMENT, Palo Alto Networks, Inc., at https://www.paloaltonetworks.com/legal/script-software-license-1-0.pdf

  Service uses PathableName, XmlConvertible, ObjectWithDescription, ServiceCommon

Located at object-classes/Service.php

Methods summary
`public` | # `__construct( mixed $name, `ServiceStore` $owner = null, boolean $fromTemplateXml = FALSE )` #### Parameters $name `mixed` $name $owner ``ServiceStore`` $owner $fromTemplateXml `boolean` $fromTemplateXml
`public` | # `load_from_domxml( `DOMElement` $xml )` #### Parameters $xml ``DOMElement`` $xml #### Throws ``Exception``
`public boolean` | # `setDestPort( string $newPorts )` #### Parameters $newPorts `string` $newPorts #### Returns `boolean`
`public boolean` | # `API_setDestPort( string $newPorts )` #### Parameters $newPorts `string` $newPorts #### Returns `boolean`
`public` | # `setSourcePort( mixed $newPorts )`
`public` | # `isTcp( )`
`public` | # `isUdp( )`
`public` | # `setProtocol( string $newProtocol )` #### Parameters $newProtocol `string` $newProtocol
`public boolean` | # `setTimeout( string $newTimeout )` #### Parameters $newTimeout `string` $newPorts #### Returns `boolean`
`public boolean` | # `API_setTimeout( string $newTimeout )` #### Parameters $newTimeout `string` $newPorts #### Returns `boolean`
`public string` | # `protocol( )` #### Returns `string`
`public string` | # `getDestPort( )` #### Returns `string`
`public string` | # `getSourcePort( )` #### Returns `string`
`public string` | # `getTimeout( )` #### Returns `string`
`public string` | # `getHalfcloseTimeout( )` #### Returns `string`
`public string` | # `getTimewaitTimeout( )` #### Returns `string`
`public string` | # `getOverride( )` #### Returns `string`
`public` | # `setName( string $newName )` #### Parameters $newName `string` $newName
`public` | # `API_setName( string $newName )` #### Parameters $newName `string` $newName
`public string &` | # `getXPath( )` #### Returns `string`
`public` | # `isService( )`
`public` | # `isTmpSrv( )`
`public boolean` | # `equals( mixed $otherObject )` #### Parameters $otherObject `mixed` $otherObject Service|ServiceStore #### Returns `boolean`
`public` | # `sameValue( `Service` $otherObject )`
`public `ServiceDstPortMapping`` | # `dstPortMapping( )` #### Returns ``ServiceDstPortMapping`` #### Throws ``Exception``
`public `ServiceSrcPortMapping`` | # `srcPortMapping( )` #### Returns ``ServiceSrcPortMapping`` #### Throws ``Exception``
`public` | # `API_delete( )`
`public` | # `removeReference( mixed $object )`

Methods used from PathableName
`(), (), ()`

Methods used from XmlConvertible
`(), (), (), (), ()`

Methods used from ObjectWithDescription
`(), (), (), (), ()`

Methods used from ServiceCommon
`(), (), (), (), (), (), (), ()`

Methods used from ReferenceableObject
`(), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), removeReference()(as super_removeReference())`

Properties summary
`protected string` | $_protocol | `'tcp'` | #
`protected string` | $_dport | `''` | #
`protected string` | $_sport | `''` | #
`protected string` | $_timeout | `''` | #
`protected mixed` | $_halfclose_timeout | `` | #
`protected mixed` | $_timewait_timeout | `` | #
`public null|`DOMElement`` | $protocolRoot | `null` | #
`protected null|`DOMElement`` | $tcpOrUdpRoot | `null` | #
`public null|`DOMElement`` | $dportroot | `null` | #
`public string` | $type | `''` | #
`public `ServiceStore`` | $owner | `null` | #
`public `TagRuleContainer`` | $tags | `` | #
`protected static string` | $templatexml | `'<entry name="**temporarynamechangeme**"><protocol><tcp><port>0</port></tcp></protocol></entry>'` | #
`protected static mixed` | $templatexmlroot | `null` | #

Properties used from XmlConvertible
`$xmlroot`

Properties used from ObjectWithDescription
`$_description`

Magic properties used from PathableName
`$name, $owner`

Magic properties used from ObjectWithDescription
`$xmlroot`