PHP Classes

File: box.php

Recommend this page to a friend!
  Classes of Nathaniel Sherwood   Encase PHP Functional Programming   box.php   Download  
File: box.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Encase PHP Functional Programming
Make functions work as if they are class functions
Author: By
Last change:
Date: 5 years ago
Size: 225 bytes
 

Contents

Class file image Download
<?php
namespace Encase\Functional;

/**
 * Box a value into a fitting Functional wrapper class.
 *
 * @param mixed $value
 * @return Value|Str|Collection|Func
 */
function box($value = null)
{
    return
Value::box($value);
}