ServiceCollection
class ServiceCollection (View source)
Properties
protected | $adWordsServices | Adwords service | |
protected Collection | $items | List of items | |
protected string | $preGetterMethod | Google pre getter Method label i.e. getId,getName,etc. | |
protected string | $preSetterMethod | Google pre setter Method label i.e. setId,setName,etc. |
Methods
__construct($adWordsServices, array $items = [])
ServiceCollection constructor.
where($field, $value, bool $opposite = false)
search the value in the collection in a specific field.
set($field, $value)
Set the value in the specific field.
map($callback)
No description
filter($callback)
No description
false|mixed
save()
Persist values in google.
Collection
items()
Get item list.
mixed
__call($name, $arguments)
If any method call is available in Collection class it will be fired for the items since it's a Collection instance.
Details
at line 56
__construct($adWordsServices, array $items = [])
ServiceCollection constructor.
at line 71
ServiceCollection
where($field, $value, bool $opposite = false)
search the value in the collection in a specific field.
at line 89
ServiceCollection
set($field, $value)
Set the value in the specific field.
at line 102
ServiceCollection
map($callback)
at line 111
ServiceCollection
filter($callback)
at line 120
false|mixed
save()
Persist values in google.
at line 142
Collection
items()
Get item list.
at line 174
mixed
__call($name, $arguments)
If any method call is available in Collection class it will be fired for the items since it's a Collection instance.