Skip to content

Commit

Permalink
Adds missing docblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
sixlive committed Jan 27, 2019
1 parent 54a60f6 commit c2b0855
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/TextCopy.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ public function mask($character = '*')
return $this;
}

/**
* Set the copy button's title attribute.
*
* @param string $title
* @return \Sixlive\TextCopy\TextCopy
*/
public function copyButtonTitle($title = '')
{
$this->withMeta([
Expand All @@ -56,6 +62,12 @@ public function copyButtonTitle($title = '')
return $this;
}

/**
* Mutate the value that will be copied.
*
* @param string|int|Closure $value
* @return \Sixlive\TextCopy\TextCopy
*/
public function copyValue($value)
{
$this->withMeta([
Expand Down

0 comments on commit c2b0855

Please sign in to comment.