Skip to content

Commit

Permalink
Add PHPDocs to new View methods
Browse files Browse the repository at this point in the history
  • Loading branch information
natanfelles committed Dec 1, 2022
1 parent 4113f0f commit 702a01a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/View.php
Expand Up @@ -387,17 +387,38 @@ public function setDebugCollector(ViewCollector $debugCollector) : static
return $this;
}

/**
* Tells if it is showing debug comments when in debug mode.
*
* @since 3.2
*
* @return bool
*/
public function isShowingDebugComments() : bool
{
return $this->showDebugComments;
}

/**
* Enable debug comments when in debug mode.
*
* @since 3.2
*
* @return static
*/
public function enableDebugComments() : static
{
$this->showDebugComments = true;
return $this;
}

/**
* Disable debug comments when in debug mode.
*
* @since 3.2
*
* @return static
*/
public function disableDebugComments() : static
{
$this->showDebugComments = false;
Expand Down

0 comments on commit 702a01a

Please sign in to comment.