Code Duplication    Length = 7-7 lines in 3 locations

packages/core/src/Models/Task/Base/Task.php 1 location

@@ 745-751 (lines=7) @@
742
     *                     Defaults to TableMap::TYPE_PHPNAME.
743
     * @return mixed Value of field.
744
     */
745
    public function getByName($name, $type = TableMap::TYPE_PHPNAME)
746
    {
747
        $pos = TaskTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM);
748
        $field = $this->getByPosition($pos);
749
750
        return $field;
751
    }
752
753
    /**
754
     * Retrieves a field from the object by Position as specified in the xml schema.

packages/selfprice/src/Models/Selfprice/Base/Selfprice.php 1 location

@@ 777-783 (lines=7) @@
774
     *                     Defaults to TableMap::TYPE_PHPNAME.
775
     * @return mixed Value of field.
776
     */
777
    public function getByName($name, $type = TableMap::TYPE_PHPNAME)
778
    {
779
        $pos = SelfpriceTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM);
780
        $field = $this->getByPosition($pos);
781
782
        return $field;
783
    }
784
785
    /**
786
     * Retrieves a field from the object by Position as specified in the xml schema.

packages/core/src/Models/User/Base/User.php 1 location

@@ 953-959 (lines=7) @@
950
     *                     Defaults to TableMap::TYPE_PHPNAME.
951
     * @return mixed Value of field.
952
     */
953
    public function getByName($name, $type = TableMap::TYPE_PHPNAME)
954
    {
955
        $pos = UserTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM);
956
        $field = $this->getByPosition($pos);
957
958
        return $field;
959
    }
960
961
    /**
962
     * Retrieves a field from the object by Position as specified in the xml schema.