Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 495 Bytes

scalar_adapter.md

File metadata and controls

26 lines (16 loc) · 495 Bytes

ScalarAdapter

The ScalarAdapter transforms the input value from a string into it's scalar representation.

Ex. The string "true" will be transformed into true.

Usage

<?php

use Presta\BehatEvaluator\Adapter\ScalarAdapter;

$evaluate = new ScalarAdapter();
$value = $evaluate('123');

// $value is equal to 123

You may return to the README or read other adapters guides.