Skip to content

Commit

Permalink
Add missing @return $this annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Sep 9, 2021
1 parent b83a990 commit 67342ec
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions LinkedInOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,62 +55,89 @@ public static function fromNotification(Notification $notification): self
return $options;
}

/**
* @return $this
*/
public function contentCertificationRecord(string $contentCertificationRecord): self
{
$this->options['contentCertificationRecord'] = $contentCertificationRecord;

return $this;
}

/**
* @return $this
*/
public function firstPublishedAt(int $firstPublishedAt): self
{
$this->options['firstPublishedAt'] = $firstPublishedAt;

return $this;
}

/**
* @return $this
*/
public function lifecycleState(LifecycleStateShare $lifecycleStateOption): self
{
$this->options['lifecycleState'] = $lifecycleStateOption->lifecycleState();

return $this;
}

/**
* @return $this
*/
public function origin(string $origin): self
{
$this->options['origin'] = $origin;

return $this;
}

/**
* @return $this
*/
public function ugcOrigin(string $ugcOrigin): self
{
$this->options['ugcOrigin'] = $ugcOrigin;

return $this;
}

/**
* @return $this
*/
public function versionTag(string $versionTag): self
{
$this->options['versionTag'] = $versionTag;

return $this;
}

/**
* @return $this
*/
public function specificContent(ShareContentShare $specificContent): self
{
$this->options['specificContent']['com.linkedin.ugc.ShareContent'] = $specificContent->toArray();

return $this;
}

/**
* @return $this
*/
public function author(AuthorShare $authorOption): self
{
$this->options['author'] = $authorOption->author();

return $this;
}

/**
* @return $this
*/
public function visibility(VisibilityShare $visibilityOption): self
{
$this->options['visibility'] = $visibilityOption->toArray();
Expand Down

0 comments on commit 67342ec

Please sign in to comment.