Skip to content

Commit

Permalink
refactor(docs): add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
fredbradley committed Feb 25, 2021
1 parent cd4b554 commit 06f05e4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,30 @@
<?php

/**
* @param string $string
*
* @return string
*/
function test(string $string): string
{
return $string;
}

/**
* @param int $int
*
* @return int
*/
function testAgain(int $int): int
{
return $int;
}

/**
* @param $var
*
* @return bool
*/
function isInt($var): bool
{
if ($var instanceof int) {
Expand Down

0 comments on commit 06f05e4

Please # to comment.