<commit_before><?php
/**
 * Created by PhpStorm.
 * User: alpipego
 * Date: 22.07.2017
 * Time: 10:57
 */

namespace WPHibou\DI;

class ObjectDefinition
{
    public $constructorParams = [];

    public function constructorParam(string $name, $value) : self
    {
        $this->constructorParams[$name] = $value;

        return $this;
    }
}<commit_msg>add bind method, to allow for binding array keys<commit_after><?php
/**
 * Created by PhpStorm.
 * User: alpipego
 * Date: 22.07.2017
 * Time: 10:57
 */

namespace WPHibou\DI;

class ObjectDefinition
{
    public $constructorParams = [];
    public $bindings = [];

    public function constructorParam(string $name, $value) : self
    {
        $this->constructorParams[$name] = $value;

        return $this;
    }

    public function bind(string $class)
    {
        $this->bindings[] = $class;

        return $this;
    }
}
{'fraction_non_alphanumeric': 0.1343115124153499, 'fraction_numerical': 0.02708803611738149, 'mean_word_length': 2.8068669527896994, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5415534', 'n_tokens_mistral': 304, 'n_tokens_neox': 280, 'n_words': 70}