for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/******************************************************************************
* An implementation of dicto (scg.unibe.ch/dicto) in and for PHP.
*
* Copyright (c) 2016 Richard Klees <[email protected]>
* This software is licensed under The MIT License. You should have received
* a copy of the licence along with the code.
*/
namespace Lechimp\Dicto\Rules;
use Lechimp\Dicto\Definition as Def;
use Lechimp\Dicto\Indexer\ListenerRegistry;
/**
* This is a rule that checks a property on an entity in the code.
abstract class Property extends Schema {
* @inheritdoc
public function fluid_interface(Def\RT $rt, $name, $mode, array $arguments) {
$rt->throw_on_missing_var($name);
$left = $rt->get_var($name);
$rt->add_rule(new Rule($mode, $left, $this, $arguments));
}
* No listeners per default.
public function register_listeners(ListenerRegistry $registry) {