Skip to content

Commit

Permalink
- improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
toni-suarez committed Jun 18, 2024
1 parent 43a7b6a commit 0a3193b
Showing 1 changed file with 23 additions and 7 deletions.
30 changes: 23 additions & 7 deletions src/Tags/Utm.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,36 @@ public function get()
}

/**
* Determin if there is a certain UTM Parameter.
* Determine if there is a certain UTM Parameter.
*
* @return bool
*/
public function has()
public function is()
{
$type = $this->params->get('type', 'source');
$value = $this->params->get('value', null);
return UtmParameter::has($type, $value);
}

if ($this->params->has('contains')) {
$value = $this->params->get('contains');
return UtmParameter::contains($type, $value);
}
/**
* Alias for is()
*
* @return bool
*/
public function has()
{
return $this->is();
}

/**
* Determine if a value contains inside the key
*
* @return void
*/
public function contains()
{
$type = $this->params->get('type', 'source');
$value = $this->params->get('value', null);
return UtmParameter::has($type, $value);
return UtmParameter::contains($type, $value);
}
}

0 comments on commit 0a3193b

Please sign in to comment.