• File: Functor.php
  • Full Path: /home/lef/public_html/wp-content/plugins/woocommerce-multilingual/vendor/otgs/installer/includes/utilities/FP/Traits/Functor.php
  • File size: 409 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php

namespace OTGS\Installer\FP\Traits;

trait Functor {
	/** @var mixed */
	protected $value;

	/**
	 * @param mixed $value
	 */
	public function __construct( $value ) {
		$this->value = $value;
	}

	/**
	 * @return mixed
	 */
	public function get() {
		return $this->value;
	}

	/**
	 * @param callable $callback
	 *
	 * @return \WPML\FP\Either
	 */
	abstract public function map( callable $callback );
}